mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
更新 redis 环境变量
This commit is contained in:
parent
aa14962a85
commit
e4533c9b76
@ -7,7 +7,7 @@
|
||||
import os
|
||||
# 这个redis 是 celery 使用的,包括存储队列信息还有部分统计信息
|
||||
redis_config = {
|
||||
"host": os.environ.get("celery_redis_host"),
|
||||
"host": os.environ.get("REDIS_PORT_6379_TCP_ADDR"),
|
||||
"port": 6379,
|
||||
"db": 0
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ import logging
|
||||
|
||||
logger = logging.getLogger("app_info")
|
||||
|
||||
|
||||
def problem_page(request, problem_id):
|
||||
try:
|
||||
problem = Problem.objects.get(id=problem_id, visible=True)
|
||||
|
Loading…
Reference in New Issue
Block a user