|
@@ -14,7 +14,7 @@ ALLOWED_HOSTS = ['*']
|
|
|
ADDR_URL = []
|
|
|
ANONYMOUS_USER_ID = -1 # 支持匿名用户
|
|
|
|
|
|
-STATIC_URL = '/static/static/'
|
|
|
+STATIC_URL = '/static/'
|
|
|
STATICFILES_DIRS = (os.path.join(BASE_DIR,'static'),)
|
|
|
|
|
|
# 上传路径根目录
|
|
@@ -100,13 +100,13 @@ WSGI_APPLICATION = 'Ansjer.local_config.local_wsgi.application'
|
|
|
DATABASE_DATA = 'ansjer'
|
|
|
SERVER_HOST = '127.0.0.1'
|
|
|
DATABASES_USER = 'root'
|
|
|
-DATABASES_PASS = '0000'
|
|
|
+DATABASES_PASS = '123456'
|
|
|
|
|
|
# 推送数据库
|
|
|
DATABASE_DATA2 = 'push'
|
|
|
SERVER_HOST2 = '127.0.0.1'
|
|
|
DATABASES_USER2 = 'root'
|
|
|
-DATABASES_PASS2 = '0000'
|
|
|
+DATABASES_PASS2 = '123456'
|
|
|
|
|
|
# 序列号公共数据库
|
|
|
# DATABASE_DATA3 = 'ansjer_test'
|
|
@@ -251,7 +251,7 @@ LOGGING = {
|
|
|
'default': {
|
|
|
'level': 'ERROR',
|
|
|
'class': 'logging.handlers.TimedRotatingFileHandler',
|
|
|
- 'filename': BASE_DIR + '/static/error/error/error.error',
|
|
|
+ 'filename': BASE_DIR + '/static/log/error/error.log',
|
|
|
'backupCount': 30,
|
|
|
'when': 'D',
|
|
|
'formatter': 'error_format',
|
|
@@ -264,7 +264,7 @@ LOGGING = {
|
|
|
'info': {
|
|
|
'level': 'INFO',
|
|
|
'class': 'logging.handlers.TimedRotatingFileHandler',
|
|
|
- 'filename': BASE_DIR + '/static/error/info/info.error',
|
|
|
+ 'filename': BASE_DIR + '/static/log/info/info.log',
|
|
|
'backupCount': 30,
|
|
|
'when': 'D',
|
|
|
'formatter': 'standard',
|
|
@@ -279,7 +279,7 @@ LOGGING = {
|
|
|
'level': 'ERROR',
|
|
|
'propagate': False
|
|
|
},
|
|
|
- # error 调用时需要当作参数传入
|
|
|
+ # log 调用时需要当作参数传入
|
|
|
'info': {
|
|
|
'handlers': ['info'],
|
|
|
'level':'INFO',
|