添加缓存用redis的配置

This commit is contained in:
sxw@401 2015-09-12 20:00:56 +08:00
parent 120017b276
commit 196c3ee934
2 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,12 @@ DATABASES = {
} }
} }
REDIS_CACHE = {
"host": "121.42.32.129",
"port": 6379,
"db": 1
}
DEBUG = True DEBUG = True
# 同理 这是 web 服务器的上传路径 # 同理 这是 web 服务器的上传路径

View File

@ -29,6 +29,12 @@ DATABASES = {
} }
} }
REDIS_CACHE = {
"host": "127.0.0.1",
"port": 6379,
"db": 1
}
DEBUG = True DEBUG = True
# 同理 这是 web 服务器的上传路径 # 同理 这是 web 服务器的上传路径