authentication - django's logout(request) also logout django admin and vise versa? -



authentication - django's logout(request) also logout django admin and vise versa? -

i'm using django's auth module login , logout users in website. when login user website , go django admin page, automatically logs in user. natural?

from django.contrib.auth import authenticate, login, logout def login_request(request): user = authenticate(username=username, password=password) login(request, user) def logout_request(request): logout(request)

edit: think same question. logged-in-the app user logged-out when superuser logs in django admin please confirm answer

thanks

yes, because utilize same authentication backend.

django authentication

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

c - how to symlink a shared object file (lib) -