Skip to content

Instantly share code, notes, and snippets.

@chrcoe
Created November 24, 2014 15:51
Show Gist options
  • Save chrcoe/aa4dca1fb9e3a179c9d8 to your computer and use it in GitHub Desktop.
Save chrcoe/aa4dca1fb9e3a179c9d8 to your computer and use it in GitHub Desktop.
Django SECRET_KEY generation from Leo Soto: http://techblog.leosoto.com/django-secretkey-generation/
found this at Leo's blog: http://techblog.leosoto.com/django-secretkey-generation/
$ python -c 'import random; import string; print "".join([random.SystemRandom().choice(string.digits + string.letters + string.punctuation) for i in range(100)])'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment