Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Created December 5, 2022 04:06
Show Gist options
  • Select an option

  • Save barbietunnie/d83c4bb7c0eb2ee4e3e71f91697a68f6 to your computer and use it in GitHub Desktop.

Select an option

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

LUS24 commented Apr 20, 2024

Copy link
Copy Markdown

Thanks!

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