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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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