Last Updated: May 11, 2020
·
3.602K
· 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))]))"