2626SECRET_KEY = config ('SECRET_KEY' , default = 'dUmMy_s3cR3t_k3y' )
2727
2828# SECURITY WARNING: don't run with debug turned on in production!
29- DEBUG = True
29+ DEBUG = config ( 'DEBUG' , default = 'TRUE' )
3030
31- ALLOWED_HOSTS = []
31+ ALLOWED_HOSTS = config ( 'ALLOWED_URLS' , default = 'localhost' )
3232
3333URL_ROOT = ''
3434
7373# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
7474DATABASES = {
7575 'default' : {
76- 'ENGINE' : 'django.db.backends.{0}' .format (
77- config ('DB_ENGINE' , default = 'sqlite3' )
78- ),
79- 'NAME' : config ('DB_NAME' ,
80- default = os .path .join (BASE_DIR , 'db.sqlite3' )
81- ),
76+ 'ENGINE' : 'django.db.backends.{0}' .format (config ('DB_ENGINE' ,
77+ default = 'sqlite3' )),
78+ 'NAME' : config ('DB_NAME' , default = os .path .join (BASE_DIR ,
79+ 'db.sqlite3' )),
8280 # The following settings are not used with sqlite3:
8381 'USER' : config ('DB_USER' , default = '' ),
8482 'PASSWORD' : config ('DB_PASSWORD' , default = '' ),
197195
198196AUTH_PASSWORD_VALIDATORS = [
199197 {
200- 'NAME' : 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator' ,
198+ 'NAME' : 'django.contrib.auth.password_validation.\
199+ UserAttributeSimilarityValidator' ,
201200 },
202201 {
203- 'NAME' : 'django.contrib.auth.password_validation.MinimumLengthValidator' ,
202+ 'NAME' : 'django.contrib.auth.password_validation.\
203+ MinimumLengthValidator' ,
204204 'OPTIONS' : {
205205 'min_length' : 8 ,
206206 }
207207 },
208208 {
209- 'NAME' : 'django.contrib.auth.password_validation.CommonPasswordValidator' ,
209+ 'NAME' : 'django.contrib.auth.password_validation.\
210+ CommonPasswordValidator' ,
210211 },
211212 {
212- 'NAME' : 'django.contrib.auth.password_validation.NumericPasswordValidator' ,
213+ 'NAME' : 'django.contrib.auth.password_validation.]\
214+ NumericPasswordValidator' ,
213215 },
214216]
215217
230232}
231233
232234CORS_ORIGIN_ALLOW_ALL = True
233- CORS_ALLOW_CREDENTIALS = True
235+ CORS_ALLOW_CREDENTIALS = True
0 commit comments