修改部分设置,为上线做准备

This commit is contained in:
virusdefender
2015-08-31 16:30:31 +08:00
parent 55fac52c33
commit 216647540a
3 changed files with 44 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 下面是需要自己修改的
LOG_PATH = "LOG/"
LOG_PATH = "log/"
# 注意这是web 服务器访问的地址,判题端访问的地址不一定一样,因为可能不在一台机器上
DATABASES = {
@@ -18,7 +18,7 @@ DATABASES = {
'NAME': 'oj_submission',
'ENGINE': 'django.db.backends.mysql',
'HOST': "121.42.32.129",
'POST': 3306,
'PORT': 3306,
'USER': 'root',
'PASSWORD': 'mypwd'
}
@@ -29,5 +29,5 @@ DEBUG = True
# 同理 这是 web 服务器的上传路径
TEST_CASE_DIR = os.path.join(BASE_DIR, 'test_case/')
DATABASE_ROUTERS = ['oj.db_router.DBRouter']
ALLOWED_HOSTS = []