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