django and csrf_token problem
I have a little problem with the token in django.

When I write a POST form  and add {{csrf_token}}, when I submit it the token is checked .

But when I send a POST request (in ajax) and add  the paramater manually **csrfmiddlewaretoken** , the token is not checked.

But I don't know why ?


Thanks.

django and csrf_token problem
===

I have a little problem with the token in django.

When I write a POST form  and add {{csrf_token}}, when I submit it the token is checked .

But when I send a POST request (in ajax) and add  the paramater manually **csrfmiddlewaretoken** , the token is not checked.

But I don't know why ?


Thanks.
