From c528ab11fa20a84cfea788bbfede476de8f6436d Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Mon, 31 Aug 2015 18:37:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BF=AE=E6=94=B9=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge/judger_controller/settings.py | 4 ++-- oj/local_settings.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/judge/judger_controller/settings.py b/judge/judger_controller/settings.py index 668838ba..a58143b4 100644 --- a/judge/judger_controller/settings.py +++ b/judge/judger_controller/settings.py @@ -16,9 +16,9 @@ docker_config = { # 测试用例的路径,是主机上的实际路径 -test_case_dir = "/root/test_case/" +test_case_dir = "/var/mnt/source//test_case/" # 源代码路径,也就是 manage.py 所在的实际路径 -source_code_dir = "/root/OnlineJudge/" +source_code_dir = "/var/mnt/source/OnlineJudge/" # 存储提交信息的数据库,是 celery 使用的,与 oj.settings/local_settings 等区分,那是 web 服务器访问的地址 diff --git a/oj/local_settings.py b/oj/local_settings.py index dede6c14..b9232918 100644 --- a/oj/local_settings.py +++ b/oj/local_settings.py @@ -31,6 +31,3 @@ DEBUG = True TEST_CASE_DIR = os.path.join(BASE_DIR, 'test_case/') ALLOWED_HOSTS = [] - - -ALLOWED_HOSTS = []