2015-06-26 07:59:53 +00:00
|
|
|
# coding=utf-8
|
2015-08-02 00:50:38 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
2015-08-12 06:01:34 +00:00
|
|
|
|
|
|
|
# 下面是需要自己修改的
|
|
|
|
LOG_PATH = "LOG/"
|
|
|
|
|
2015-08-02 00:50:38 +00:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
2015-08-12 06:01:34 +00:00
|
|
|
'CONN_MAX_AGE': 0.3,
|
|
|
|
},
|
|
|
|
'mongodb': {
|
|
|
|
'HOST': '127.0.0.1',
|
|
|
|
'USERNAME': 'root',
|
|
|
|
'PASSWORD': 'root',
|
|
|
|
'PORT': 27017
|
2015-08-02 00:50:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-12 06:01:34 +00:00
|
|
|
|
|
|
|
DEBUG = True
|
|
|
|
|
|
|
|
TEST_CASE_DIR = "/var/test_case/"
|
|
|
|
|