From bb7036863d85eb96860514f45e3e74fdcb501b9c Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 2 Oct 2025 16:30:02 +0200 Subject: [PATCH 1/2] Update secret value generation code examples in docs --- README.md | 2 +- deployment.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index afe124f3fb..dc456e67b4 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Some environment variables in the `.env` file have a default value of `changethi You have to change them with a secret key, to generate secret keys you can run the following command: ```bash -python -c "import secrets; print(secrets.token_urlsafe(32))" +python -c "import secrets; print(secrets.token_urlsafe(32)[:40])" ``` Copy the content and use that as password / secret key. And run that again to generate another secure key. diff --git a/deployment.md b/deployment.md index 970032b387..1ae842f5f7 100644 --- a/deployment.md +++ b/deployment.md @@ -158,7 +158,7 @@ Some environment variables in the `.env` file have a default value of `changethi You have to change them with a secret key, to generate secret keys you can run the following command: ```bash -python -c "import secrets; print(secrets.token_urlsafe(32))" +python -c "import secrets; print(secrets.token_urlsafe(32)[:40])" ``` Copy the content and use that as password / secret key. And run that again to generate another secure key. From 1e02093cda984fbcca7a93f8bfbf377e99f34a1c Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 2 Oct 2025 16:30:27 +0200 Subject: [PATCH 2/2] Update secret value generation code examples in copier.yml --- copier.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copier.yml b/copier.yml index f98e3fc861..c904d006b7 100644 --- a/copier.yml +++ b/copier.yml @@ -13,7 +13,7 @@ secret_key: help: | 'The secret key for the project, used for security, stored in .env, you can generate one with: - python -c "import secrets; print(secrets.token_urlsafe(32))"' + python -c "import secrets; print(secrets.token_urlsafe(32)[:40])"' default: changethis first_superuser: @@ -51,7 +51,7 @@ postgres_password: help: | 'The password for the PostgreSQL database, stored in .env, you can generate one with: - python -c "import secrets; print(secrets.token_urlsafe(32))"' + python -c "import secrets; print(secrets.token_urlsafe(32)[:40])"' default: changethis sentry_dsn: