Skip to content

Instantly share code, notes, and snippets.

@avorio
Created August 3, 2015 16:36
Show Gist options
  • Save avorio/ed04e30a5604599e8de2 to your computer and use it in GitHub Desktop.
Save avorio/ed04e30a5604599e8de2 to your computer and use it in GitHub Desktop.
Generate Django SECRET_KEY
import random, string;
''.join([random.SystemRandom().choice("{}{}{}".format(string.ascii_letters, string.digits, 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