File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ Some environment variables in the `.env` file have a default value of `changethi
147147You have to change them with a secret key, to generate secret keys you can run the following command:
148148
149149``` bash
150- python -c " import secrets; print(secrets.token_urlsafe(32))"
150+ python -c " import secrets; print(secrets.token_urlsafe(32))[:31] "
151151```
152152
153153Copy the content and use that as password / secret key. And run that again to generate another secure key.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ secret_key:
1313 help : |
1414 'The secret key for the project, used for security,
1515 stored in .env, you can generate one with:
16- python -c "import secrets; print(secrets.token_urlsafe(32))"'
16+ python -c "import secrets; print(secrets.token_urlsafe(32)[:31] )"'
1717 default : changethis
1818
1919first_superuser :
@@ -51,7 +51,7 @@ postgres_password:
5151 help : |
5252 'The password for the PostgreSQL database, stored in .env,
5353 you can generate one with:
54- python -c "import secrets; print(secrets.token_urlsafe(32))"'
54+ python -c "import secrets; print(secrets.token_urlsafe(32)[:31] )"'
5555 default : changethis
5656
5757sentry_dsn :
You can’t perform that action at this time.
0 commit comments