Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Created December 5, 2022 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barbietunnie/d83c4bb7c0eb2ee4e3e71f91697a68f6 to your computer and use it in GitHub Desktop.
Save barbietunnie/d83c4bb7c0eb2ee4e3e71f91697a68f6 to your computer and use it in GitHub Desktop.
How to generate a Django `SECRET_KEY`
from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())
python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
@LUS24
Copy link

LUS24 commented Apr 20, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment