File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
12
12
import os
13
-
13
+ import dj_database_url
14
14
BASE_DIR = os .path .dirname (os .path .dirname (__file__ ))
15
15
16
16
# Quick-start development settings - unsuitable for production
20
20
SECRET_KEY = 'x1-pogt0-b5owbgq0=ui02-4v)bba!bg&1m8_$)8-&13(907qf'
21
21
22
22
# 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' )
24
26
25
27
ALLOWED_HOSTS = ['*' ]
26
28
74
76
},
75
77
]
76
78
79
+ DATABASES = { 'default' : dj_database_url .config () }
80
+
77
81
# Internationalization
78
82
# https://docs.djangoproject.com/en/1.7/topics/i18n/
79
83
You can’t perform that action at this time.
0 commit comments