Skip to content

Instantly share code, notes, and snippets.

@seLain
Created March 16, 2018 03:22
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 seLain/5e56475dd59024eb47df01acaa04ccae to your computer and use it in GitHub Desktop.
Save seLain/5e56475dd59024eb47df01acaa04ccae to your computer and use it in GitHub Desktop.
Django get new random secret key
This can be done in interactive python shell
> from django.core.management.utils import get_random_secret_key
> get_random_secret_key()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment