Skip to content

Instantly share code, notes, and snippets.

@alvesgabriel
Forked from sandervm/commandline.txt
Last active September 7, 2020 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvesgabriel/074c5e87261267859a616152d3d7a9f8 to your computer and use it in GitHub Desktop.
Save alvesgabriel/074c5e87261267859a616152d3d7a9f8 to your computer and use it in GitHub Desktop.
Generate Django secret key commandline
$ python -c 'import random; print "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)])'
$ python -c 'import random; print("".join([random.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