Created
April 6, 2017 00:40
-
-
Save mattmc3/4bd0812fe5f9a566ab248af2a6f6ff80 to your computer and use it in GitHub Desktop.
Django make new secret key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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