1👍
✅
How to avoid this error, solutions as below:
- Add
{% csrf_token %}
in your template
Link:csrf_token
- Add
@csrf_exempt
on your view
Link:csrf_exempt
Source:stackexchange.com