add test case upload api

This commit is contained in:
virusdefender
2017-01-25 16:29:00 +08:00
parent e34da1ac33
commit 48f79ec504
13 changed files with 103 additions and 17 deletions

View File

@@ -68,7 +68,7 @@ ROOT_URLCONF = 'oj.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': OJ_TEMPLATE_DIRS,
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@@ -171,8 +171,6 @@ CELERY_TASK_SERIALIZER = "json"
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/')
# 用于限制用户恶意提交大量代码