django-rotate-secret-key · PyPI
https://pypi.org/project/django-rotate-secret-key28.01.2019 · Install django-rotate-secret-key and configure Support both keys for a limited time (x months) Roll back django-rotate-secret-key and keep your secret key the same (removing the old one) If a user comes back to the website after x months, his session will be invalidated. But for all the regular users this should be seamless transition.
Settings | Django documentation | Django
docs.djangoproject.com › en › 4SECRET_KEY ¶ Default: '' (Empty string) A secret key for a particular Django installation. This is used to provide cryptographic signing, and should be set to a unique, unpredictable value. django-admin startproject automatically adds a randomly-generated SECRET_KEY to each new project. Uses of the key shouldn’t assume that it’s text or bytes.