From 196c3ee934171925de47f1ed7aaa02656d2c945c Mon Sep 17 00:00:00 2001 From: "sxw@401" Date: Sat, 12 Sep 2015 20:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=93=E5=AD=98=E7=94=A8re?= =?UTF-8?q?dis=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oj/local_settings.py | 6 ++++++ oj/server_settings.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/oj/local_settings.py b/oj/local_settings.py index 081b2959..51e9095e 100644 --- a/oj/local_settings.py +++ b/oj/local_settings.py @@ -25,6 +25,12 @@ DATABASES = { } } +REDIS_CACHE = { + "host": "121.42.32.129", + "port": 6379, + "db": 1 +} + DEBUG = True # 同理 这是 web 服务器的上传路径 diff --git a/oj/server_settings.py b/oj/server_settings.py index a00d7bbc..cc5ee829 100644 --- a/oj/server_settings.py +++ b/oj/server_settings.py @@ -29,6 +29,12 @@ DATABASES = { } } +REDIS_CACHE = { + "host": "127.0.0.1", + "port": 6379, + "db": 1 +} + DEBUG = True # 同理 这是 web 服务器的上传路径