Python - How to import 'HttpResponseNotFound' -- django

Import HttpResponseNotFound

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

from django.http import HttpResponseNotFound

 

For more information about HttpResponseNotFound:
django HttpResponseNotFound