Skip to content

Instantly share code, notes, and snippets.

@mattmc3
Created April 6, 2017 00:40
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 mattmc3/4bd0812fe5f9a566ab248af2a6f6ff80 to your computer and use it in GitHub Desktop.
Save mattmc3/4bd0812fe5f9a566ab248af2a6f6ff80 to your computer and use it in GitHub Desktop.
Django make new secret key
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
get_random_string(50, chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment