Skip to content

Commit 190e93a

Browse files
committed
Merge branch 'main' of ssh://gitlab.com/divio/templates/getting-started-with-django-cms
2 parents 1fc8f0e + 513cea8 commit 190e93a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99

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

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

1616
ALLOWED_HOSTS = ["*"]
1717
CSRF_TRUSTED_ORIGINS=["https://*.aldryn.io"]

0 commit comments

Comments
 (0)