增加 rq 配置
This commit is contained in:
@@ -60,7 +60,8 @@ INSTALLED_APPS = (
|
|||||||
'judge_dispatcher',
|
'judge_dispatcher',
|
||||||
|
|
||||||
'django_extensions',
|
'django_extensions',
|
||||||
'rest_framework'
|
'rest_framework',
|
||||||
|
'django_rq',
|
||||||
)
|
)
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
@@ -193,3 +194,18 @@ IMAGE_UPLOAD_DIR = os.path.join(BASE_DIR, 'upload/')
|
|||||||
WEBSITE_INFO = {"website_name": "qduoj",
|
WEBSITE_INFO = {"website_name": "qduoj",
|
||||||
"website_footer": u"青岛大学信息工程学院 创新实验室",
|
"website_footer": u"青岛大学信息工程学院 创新实验室",
|
||||||
"url": "https://qduoj.com"}
|
"url": "https://qduoj.com"}
|
||||||
|
|
||||||
|
RQ_QUEUES = {
|
||||||
|
'judge': {
|
||||||
|
'HOST': REDIS_QUEUE["host"],
|
||||||
|
'PORT': REDIS_QUEUE["port"],
|
||||||
|
'DB': 2,
|
||||||
|
'DEFAULT_TIMEOUT': 60,
|
||||||
|
},
|
||||||
|
'mail': {
|
||||||
|
'HOST': REDIS_QUEUE["host"],
|
||||||
|
'PORT': REDIS_QUEUE["port"],
|
||||||
|
'DB': 3,
|
||||||
|
'DEFAULT_TIMEOUT': 60,
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user