Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created January 3, 2024 21:46
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 jkeam/70d44d1d576718953886be943c81ed1c to your computer and use it in GitHub Desktop.
Save jkeam/70d44d1d576718953886be943c81ed1c to your computer and use it in GitHub Desktop.
Generate Django Secret Key
python manage.py shell
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