--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPP%2BAoBVbpM9-jwoevd8tVkep8YasFt6VSRD1M2bfP-bjcg%40mail.gmail.com.
first, you need to install Django-session-timeout with the command:
pip install django-session-timeout
then you need to update your SessionTimeoutMiddleware in settings.py
MIDDLEWARE_CLASSES = [
...
'django.contrib.sessions.middleware.SessionMiddleware',
'django_session_timeout.middleware.SessionTimeoutMiddleware',
...
]
at last, you need to add SESSION_EXPIRE_SECONDS at the end of settings.py:
SESSION_EXPIRE_SECONDS = 300 # 300 seconds = 5 minutes--