how to deal with authenticate in django code example Example: django authenticate from django.contrib.auth import authenticate