Skip to content

Instantly share code, notes, and snippets.

@badri
Created December 4, 2017 10:08
Show Gist options
  • Save badri/a90149e2089042781039cfc3a6daf447 to your computer and use it in GitHub Desktop.
Save badri/a90149e2089042781039cfc3a6daf447 to your computer and use it in GitHub Desktop.
Django secret key generation script
python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))]))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment