How to Solve NameError: name 'csrf_exemp' is not defined -- django

Solution: Import the 'csrf_exemp' module

To Solve the error, add the following line to the top of your code.

from django.views.decorators.csrf import csrf_exemp

 

For more information:
Python django csrf_exemp