Last Updated: May 11, 2020
·
3.61K
· pykler

Oneliner to generate a Django Secret Key

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))]))"