Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.