Skip to content

Instantly share code, notes, and snippets.

@henriquebastos
Created December 23, 2015 13:50
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save henriquebastos/11cf99c1bbc70bacf73a to your computer and use it in GitHub Desktop.
Save henriquebastos/11cf99c1bbc70bacf73a to your computer and use it in GitHub Desktop.
SECRET_KEY generator.
#!/usr/bin/env python
"""
Django SECRET_KEY generator.
"""
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print(get_random_string(50, chars))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment