Friday, September 2, 2011

Django - Send and retrieve data from method(in views) with jquery ajax call

In django Some guys experience "csrfmiddlewhere" problem while passing single data to method without form using jquery ajax post method...
Here is a solution for that.....

put {% csrf_token %} in any where in page........preferebly in empty form.


in your javascript file put this code and change it according to your ids......