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.contrib.redirects.models import Redirect
For more information:
django Redirect