theatlantic / django-nested-admin

Django admin classes that allow for nested inlines
http://django-nested-admin.readthedocs.org/
Other
715 stars 99 forks source link

Session Timeout on User side #250

Closed rahul-5711 closed 2 months ago

rahul-5711 commented 3 months ago

Hi all, I am trying add a session timeout in my Django project by using Django's in-built session middleware. I have implemented session timeout on my project using the Views method I have come across for this purpose and it is working on my Admin side, but in my User side, the redirection that I given not working (i.e. I need to log out the user and get back to the signin page after session expires).

My django version : 5.0.2 My python version: 3.12.2

Now it is taking the time and that page will expire but it will not redirect to the signin page. How can I solve this issue?

What are some other approaches we can use for implementing Sessions on Admin & User sides both redirecting to the Signup page and persisting the last page worked on upon logging back in ?

Settings.py middile settings

Views.py views

urls.py url

fdintino commented 2 months ago

This repository is for django-nested-admin, which adds the ability to nest inline admins inside other inline admins. This issue sounds like a general django support question...I would suggest posing it on stackoverflow or in some other support forum.

rahul-5711 commented 2 months ago

This repository is for django-nested-admin, which adds the ability to nest inline admins inside other inline admins. This issue sounds like a general django support question...I would suggest posing it on stackoverflow or in some other support forum.

Thankyou for the reply