Python - How to import 'HttpResponseForbidden' -- django

Import HttpResponseForbidden

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

from django.http import HttpResponseForbidden

 

For more information about HttpResponseForbidden:
django HttpResponseForbidden