修改判题设置;增加web 和 mongodb 数据库的操作

This commit is contained in:
virusdefender
2015-08-12 14:01:34 +08:00
parent 8979def927
commit 88be032a38
19 changed files with 127 additions and 46 deletions

View File

@@ -1,19 +1,28 @@
# coding=utf-8
import os
LOG_PATH = "LOG/"
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 下面是需要自己修改的
LOG_PATH = "LOG/"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'CONN_MAX_AGE': 1,
'CONN_MAX_AGE': 0.3,
},
'mongodb': {
'HOST': '127.0.0.1',
'USERNAME': 'root',
'PASSWORD': 'root',
'PORT': 27017
}
}
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = True
TEST_CASE_DIR = "/var/test_case/"