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