diff options
author | Armando Neto <neto.armando@gmail.com> | 2017-07-20 09:40:30 -0300 |
---|---|---|
committer | Armando Neto <neto.armando@gmail.com> | 2017-07-20 09:40:30 -0300 |
commit | 0a7a4c638ed7c641cb6209efcc05cce501117b62 (patch) | |
tree | 19b5306e220156a5e1416c76b2d33b5b5f36eb4a | |
parent | 83ee0947c17f40c4393033a756ce02544ae4b3ef (diff) | |
download | tipboard-0a7a4c638ed7c641cb6209efcc05cce501117b62.tar.gz tipboard-0a7a4c638ed7c641cb6209efcc05cce501117b62.tar.bz2 tipboard-0a7a4c638ed7c641cb6209efcc05cce501117b62.zip |
Add support to pass a password to Redis client
-rw-r--r-- | tipboard/settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tipboard/settings.py b/tipboard/settings.py index cedd034..1b34e0d 100644 --- a/tipboard/settings.py +++ b/tipboard/settings.py @@ -14,6 +14,7 @@ import os # Redis serwer configuration REDIS_HOST = 'localhost' REDIS_PORT = 6379 +REDIS_PASSWORD = None REDIS_DB = 4 DEBUG = False @@ -62,16 +63,19 @@ except IOError: 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, ) |