diff --git a/README.md b/README.md index afe124f3fb..0ceef32258 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))[:31]" ``` Copy the content and use that as password / secret key. And run that again to generate another secure key. diff --git a/copier.yml b/copier.yml index f98e3fc861..18a317a62f 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)[:31])"' 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)[:31])"' default: changethis sentry_dsn: