Created
December 5, 2022 04:06
-
-
Save barbietunnie/d83c4bb7c0eb2ee4e3e71f91697a68f6 to your computer and use it in GitHub Desktop.
How to generate a Django `SECRET_KEY`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.management.utils import get_random_secret_key | |
print(get_random_secret_key()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!