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