From 0a7a4c638ed7c641cb6209efcc05cce501117b62 Mon Sep 17 00:00:00 2001 From: Armando Neto Date: Thu, 20 Jul 2017 09:40:30 -0300 Subject: [PATCH] Add support to pass a password to Redis client --- tipboard/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tipboard/settings.py b/tipboard/settings.py index cedd034e..1b34e0df 100644 --- a/tipboard/settings.py +++ b/tipboard/settings.py @@ -14,6 +14,7 @@ # Redis serwer configuration REDIS_HOST = 'localhost' REDIS_PORT = 6379 +REDIS_PASSWORD = None REDIS_DB = 4 DEBUG = False @@ -62,16 +63,19 @@ REDIS = dict( host=REDIS_HOST, port=REDIS_PORT, + password=REDIS_PASSWORD, db=REDIS_DB, ) REDIS_ASYNC = dict( host=REDIS_HOST, port=REDIS_PORT, + password=REDIS_PASSWORD, selected_db=REDIS_DB, ) REDIS_SYNC = dict( host=REDIS_HOST, port=REDIS_PORT, + password=REDIS_PASSWORD, db=REDIS_DB, )