Closed ghost closed 12 years ago
to solve csrf errors on ajax requests, i am using method that described django's documentation.
Disabling csrf checks is not healty solution.
Thank you! I appreciate your clarification.
may be i should add this issue on documentation. :)
btw if you use qhonuskan-votes may be you can add your project here: https://github.com/miratcan/qhonuskan-votes/wiki/Projects-using-qhonuskan-votes
I installed this application alongside mine and I was receiving 403 errors when voting, receiving the error "CSRF token missing or incorrect.".
I added:
to qhonuskan_votes/views.py
as well as:
just above
and it worked just fine.