Skip to content
Myr

Fix example `SECRET_KEY` generation code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Removes the extra `)` in: `print(secrets.token_hex())`

authored by Ryan Nevius · committed by Adrian · parent ded812b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/config.rst+1 added-1 removed
178 unmodified lines
179 and can be used for any other security related needs by extensions or your180 application. It should be a long random ``bytes`` or ``str``. For181 example, copy the output of this to your config::182183 $ python -c 'import secrets; print(secrets.token_hex()))'183 $ python -c 'import secrets; print(secrets.token_hex())'184 '192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf'185186 **Do not reveal the secret key when posting questions or committing code.**187
581 unmodified lines