修改配置文件方便区分不同的开发环境

This commit is contained in:
virusdefender
2015-09-14 18:20:36 +08:00
parent 7febab2f1a
commit c648e0008f
7 changed files with 33 additions and 39 deletions

View File

@@ -89,7 +89,6 @@ TEMPLATES = [
WSGI_APPLICATION = 'oj.wsgi.application'
# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/
@@ -111,6 +110,9 @@ STATIC_URL = '/static/'
AUTH_USER_MODEL = 'account.User'
LOG_PATH = "log/"
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
@@ -162,4 +164,8 @@ REST_FRAMEWORK = {
'TEST_REQUEST_DEFAULT_FORMAT': 'json'
}
DATABASE_ROUTERS = ['oj.db_router.DBRouter']
DATABASE_ROUTERS = ['oj.db_router.DBRouter']
TEST_CASE_DIR = os.path.join(BASE_DIR, 'test_case/')
IMAGE_UPLOAD_DIR = os.path.join(BASE_DIR, 'upload/')