How to import HttpResponseForbidden -- django

Import the 'HttpResponseForbidden' module

from django.http import HttpRequest

 

For more information:
django HttpResponseForbidden

If the error has not been solved: