更新 redis 环境变量

This commit is contained in:
virusdefender 2015-09-17 09:44:31 +08:00
parent aa14962a85
commit e4533c9b76
2 changed files with 2 additions and 1 deletions

View File

@ -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
}

View File

@ -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)