Skip to content

Instantly share code, notes, and snippets.

@fjsj
Last active August 29, 2015 14:19
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 fjsj/92e8687de77917a7c084 to your computer and use it in GitHub Desktop.
Save fjsj/92e8687de77917a7c084 to your computer and use it in GitHub Desktop.
Print a properly secure SECRET_KEY in Django. Run this in your terminal.
python -c 'import random; print "".join([random.SystemRandom().choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)])'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment