Skip to content

Instantly share code, notes, and snippets.

@gilsondev
Created June 5, 2018 01:45
Show Gist options
  • Save gilsondev/7e1129772da70c2fd38b55aa1b1fc878 to your computer and use it in GitHub Desktop.
Save gilsondev/7e1129772da70c2fd38b55aa1b1fc878 to your computer and use it in GitHub Desktop.
Generate secret_key
#!/usr/bin/env python
from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())
@gilsondev
Copy link
Author

On Heroku:

heroku config:set SECRET_KEY=`python generage_secret_key.py`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment