File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 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
15
BASE_DIR = os .path .dirname (os .path .dirname (__file__ ))
15
16
16
17
# Quick-start development settings - unsuitable for production
22
23
# SECURITY WARNING: don't run with debug turned on in production!
23
24
DEBUG = os .getenv ("DEBUG" , False )
24
25
25
- SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO' , 'https' )
26
-
27
26
ALLOWED_HOSTS = ['*' ]
28
27
29
28
# Tuple of people who get error notifications
76
75
},
77
76
]
78
77
79
- DATABASES = { 'default' : dj_database_url .config () }
78
+ # Database
79
+ # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
80
+
81
+ DATABASES = {
82
+ 'default' : {
83
+ 'ENGINE' : 'django.db.backends.sqlite3' ,
84
+ 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
85
+ }
86
+ }
80
87
81
88
# Get DATABASE_URL environment variable and update default DATABASE settings
82
89
# This setting is required for Heroku
111
118
STATICFILES_DIRS = (
112
119
os .path .join (BASE_DIR , 'main/' ),
113
120
)
114
-
115
- try :
116
- from local_settings import *
117
- except ImportError :
118
- pass
You can’t perform that action at this time.
0 commit comments