From e9817df97e6bfb014221745ef4a03038c8bf70f2 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 27 Jul 2019 19:25:11 +0200 Subject: [PATCH] Use Django's internal secret key generation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34c5f68..274f50b 100644 --- a/README.md +++ b/README.md @@ -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`.