Created
October 16, 2013 13:38
-
-
Save seguri/7007848 to your computer and use it in GitHub Desktop.
Django secret key generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import join | |
from random import SystemRandom | |
valid_chars = list('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') | |
print(''.join(SystemRandom().sample(valid_chars, 50))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment