5👍
You should use the csrf_exempt decorator to avoid csrf protection in certains view.
You can read the docs for more information
0👍
In case you are using class based views, I’d recommend django-braces which uses a mixin to achieve this, as well as providing other extremely useful mixins.
Source:stackexchange.com