Use Django's internal secret key generation

This commit is contained in:
Rodolphe Breard 2019-07-27 19:25:11 +02:00
parent 0e03f327b1
commit e9817df97e

View file

@ -56,7 +56,7 @@ If you created the database from scratch, Django will show an error when visitin
You can set the following variables in the `.env` file:
* `KHAGANAT_SECRET_KEY` (required): Django's secret key, keep it secret (tip: generate one using `openssl rand -base64 42`).
* `KHAGANAT_SECRET_KEY` (required): Django's secret key, keep it secret (tip: generate one using `pipenv run python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'`).
* `KHAGANAT_DEBUG`: Debug mode, default is false.
* `KHAGANAT_HOSTNAMES`: Allowed hostnames, coma separated.
* `KHAGANAT_LANGUAGE_CODE`: Language code, default is `fr`.