1
from django.contrib.auth import authenticate, login
from django.contrib.auth.views import login

If I require both "login"s, what is the ideal thing to do? Thanks!

1 Answer 1

5

You can use as. For example:

from django.contrib.auth.views import login as login_view
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.