How to import HttpResponseForbidden -- django

Import the 'HttpResponseForbidden' module

from django.http import HttpRequest

 

For more information:
django HttpResponseForbidden