Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Created June 8, 2017 15:43
Show Gist options
  • Save puilp0502/6af133b7b5b6a4ddf2d0d4097309861a to your computer and use it in GitHub Desktop.
Save puilp0502/6af133b7b5b6a4ddf2d0d4097309861a to your computer and use it in GitHub Desktop.
Generate django secret key
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