Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
πŸ”“πŸ™ˆ Publish a SECRET_KEY
Browse files Browse the repository at this point in the history
I fold (for now at least).

Supporting secure out of the box would be nice, but I can also see it's close to the too-hard basket for people who're just volunteering and not renumerated (it is the kind of thing that becomes an issue as soon as one goes past the just trying it out stage though):
https://help.pythonanywhere.com/pages/environment-variables-for-web-apps
https://stackoverflow.com/questions/15170637/effects-of-changing-djangos-secret-key/15383766
DjangoGirls/tutorial-extensions#101
  • Loading branch information
pzrq committed Oct 7, 2019
1 parent 08afdf7 commit c1bbcd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ myvenv/
db.sqlite3
/static
.DS_Store
secrets/
.env
2 changes: 1 addition & 1 deletion myponysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ['SECRET_KEY']
SECRET_KEY = "yeg-*ht$p#f%w)kz498c3%6c268wkpa%cza74r56h(zj&oy^ws"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Django~=2.2.4
python-dotenv

0 comments on commit c1bbcd0

Please sign in to comment.