Skip to content

Commit c76bff7

Browse files
splitted settings
1 parent 0e26b10 commit c76bff7

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

oshc/oshc/settings.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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)
2424

2525
ALLOWED_HOSTS = ['*']
2626

@@ -74,16 +74,6 @@
7474
},
7575
]
7676

77-
# Database
78-
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
79-
80-
DATABASES = {
81-
'default': {
82-
'ENGINE': 'django.db.backends.sqlite3',
83-
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
84-
}
85-
}
86-
8777
# Internationalization
8878
# https://docs.djangoproject.com/en/1.7/topics/i18n/
8979

@@ -112,3 +102,8 @@
112102
STATICFILES_DIRS = (
113103
os.path.join(BASE_DIR, 'main/'),
114104
)
105+
106+
try:
107+
from local_settings import *
108+
except ImportError:
109+
pass

0 commit comments

Comments
 (0)