Skip to content

Commit ffcf41c

Browse files
Split local_settings and settings
1 parent 4ae083c commit ffcf41c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

oshc/oshc/settings.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1212
import os
13-
13+
import dj_database_url
1414
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
1515

1616
# Quick-start development settings - unsuitable for production
@@ -20,7 +20,9 @@
2020
SECRET_KEY = 'x1-pogt0-b5owbgq0=ui02-4v)bba!bg&1m8_$)8-&13(907qf'
2121

2222
# SECURITY WARNING: don't run with debug turned on in production!
23-
DEBUG = os.getenv("DEBUG", True)
23+
DEBUG = os.getenv("DEBUG", False)
24+
25+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
2426

2527
ALLOWED_HOSTS = ['*']
2628

@@ -74,6 +76,8 @@
7476
},
7577
]
7678

79+
DATABASES = { 'default': dj_database_url.config() }
80+
7781
# Internationalization
7882
# https://docs.djangoproject.com/en/1.7/topics/i18n/
7983

0 commit comments

Comments
 (0)