How to Solve NameError: name 'SessionStore' is not defined -- django

Erorr: name 'SessionStore' is not defined

NameError: name 'SessionStore' is not defined

Solution: Import the 'SessionStore' module

# Add the following line to the top of your code
from django.contrib.sessions.backends.db import SessionStore

 

For more information:
django SessionStore