[Answered ]-How to prevent django admin login and logout sessions from reflecting in actual website?

1👍

You could write middleware for this, to explicitly logout authenticated users in non-admin pages as suggested in this answer:

https://stackoverflow.com/a/57357586/2135738

👤fekioh

0👍

I was having a similar issue. So I just filtered is_staff = false to get the normal users for my project in my views.py and forced my admin to login page

Leave a comment