Python - How to import 'HttpResponseRedirect' -- django
Import HttpResponseRedirect
To import HttpResponseRedirect, Add the following line to the top of your code.
from django.http import HttpResponseRedirect
For more information about HttpResponseRedirect:
django HttpResponseRedirect