Python - How to import 'Http404' -- django

Import Http404

To import Http404, Add the following line to the top of your code.

from django.http import Http404

 

For more information about Http404:
django Http404