How to Solve NameError: name 'login' is not defined -- django
Solution: Import the 'login' module
# Add the following line to the top of your code
from django.contrib.auth import login
For more information:
django login
# Add the following line to the top of your code
from django.contrib.auth import login
For more information:
django login