Created
June 8, 2017 15:43
-
-
Save puilp0502/6af133b7b5b6a4ddf2d0d4097309861a to your computer and use it in GitHub Desktop.
Generate django secret key
This file contains 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
import random | |
import string | |
print("".join([random.SystemRandom().choice(string.digits + string.ascii_letters + string.punctuation) for i in range(50)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment