Answer the question
In order to leave comments, you need to log in
Why does auth.authenticate return None?
Good day, the question would seem painfully simple, but I'm stuck
When a user in the database enters the site (request.user = AnonymousUser) and then authorizes him
user = auth.authenticate(username=login, password=password)
auth.login(request, user)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question