How to Solve NameError: name 'csrf_exempt' is not defined -- django
Erorr: name 'csrf_exempt' is not defined
NameError: name 'csrf_exempt' is not defined
Solution: name 'csrf_exempt' is not defined
# Add the following line to the top of your code
from django.views.decorators.csrf import csrf_exempt
For more information:
Django csrf_exempt