Update settings.py

pull/716/head
老广 2017-09-12 17:58:09 +08:00 committed by GitHub
parent 5e197fb0db
commit 1d950c4f49
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': 'redis://:%(password)s@%(host)s:%(port)s/4' % {
'password': CONFIG.REDIS_PASSWORD + '@' if CONFIG.REDIS_PASSWORD else '',
'password': CONFIG.REDIS_PASSWORD if CONFIG.REDIS_PASSWORD else '',
'host': CONFIG.REDIS_HOST or '127.0.0.1',
'port': CONFIG.REDIS_PORT or 6379,
}