Created
June 5, 2018 01:45
-
-
Save gilsondev/7e1129772da70c2fd38b55aa1b1fc878 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
#!/usr/bin/env python | |
from django.core.management.utils import get_random_secret_key | |
print(get_random_secret_key()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Heroku:
heroku config:set SECRET_KEY=`python generage_secret_key.py`