Skip to content

Commit

Permalink
Merge branch 'debugsecretkey' into 'main'
Browse files Browse the repository at this point in the history
Updated DEBUG and SECRET_KEY env vars

See merge request divio/templates/getting-started-with-django!3
  • Loading branch information
Angelo Dini committed Jun 19, 2024
2 parents 527dc38 + 203823e commit 3dbbdbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'changeme'
SECRET_KEY = os.environ.get('SECRET_KEY', 'changeme')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = os.environ.get('DEBUG', 'False') == 'True'

ALLOWED_HOSTS = ["*"]
CSRF_TRUSTED_ORIGINS=["https://*.aldryn.io"]
Expand Down

0 comments on commit 3dbbdbf

Please sign in to comment.