Skip to content

Instantly share code, notes, and snippets.

@doubleo2
Created June 29, 2012 07:49
Show Gist options
  • Save doubleo2/3016540 to your computer and use it in GitHub Desktop.
Save doubleo2/3016540 to your computer and use it in GitHub Desktop.
Generate SECRET_KEY for django project
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
get_random_string(50, chars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment