Created
October 30, 2017 09:27
-
-
Save vitorfs/9e09b4332ece80cbf29f233c8872393c to your computer and use it in GitHub Desktop.
Generate 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!@#$%^&*(-_=+)' | |
random_string = get_random_string(50, chars) | |
print(random_string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment