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.
django-keys - PyPI
https://pypi.org/project/django-keys14.04.2021 · django-keys is a Python 3 package and CLI tool that can be used for handling the secret keys and other settings of Django projects securely. It allows you to specify the settings of your Django project in two ways: using environment variables set by execution environment; using a local .env file containing key-value pairs
django-keys · PyPI
pypi.org › project › django-keysApr 14, 2021 · You can generate a new key by using the generate-key action: $ python3 -m djangokeys generate-key --length 128. After integrating django-keys into Django’s settings module, you can also automatically generate a new .env file with all used environment variables: $ python3 -m djangokeys generate-env --settings 'config.settings'