5👍
✅
If you want csrf protection, put the {% csrf_token %}
tag in your form.
If you don’t want csrf protection, import and put the @csrf_exempt
decorator at the top of your view (see the docs).
Source:stackexchange.com