Python - import 'authenticate' -- django
Import authenticate
To import authenticate, Add the following line to the top of your code.
from django.contrib.auth import authenticate
For more information about authenticate:
Django authenticate