File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 59
59
# Database
60
60
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
61
61
62
+ # Parse database configuration from $DATABASE_URL
63
+
62
64
DATABASES = {
63
- 'default' : {
64
- 'ENGINE' : 'django.db.backends.sqlite3' ,
65
- 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
66
- }
65
+ 'default' : dj_database_url .config (default = 'sqlite:///' + os .path .join (BASE_DIR , 'db.sqlite3' ))
67
66
}
68
67
69
68
# Internationalization
85
84
86
85
STATIC_URL = '/static/'
87
86
88
-
89
- # Parse database configuration from $DATABASE_URL
90
- db_config = dj_database_url .config ()
91
- if db_config :
92
- DATABASES ['default' ] = db_config
93
-
94
87
# Honor the 'X-Forwarded-Proto' header for request.is_secure()
95
88
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO' , 'https' )
96
89
You can’t perform that action at this time.
0 commit comments