Skip to content

Commit

Permalink
Add support to pass a password to Redis client
Browse files Browse the repository at this point in the history
  • Loading branch information
netoarmando committed Jul 20, 2017
1 parent 83ee094 commit 0a7a4c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tipboard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# Redis serwer configuration
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
REDIS_PASSWORD = None
REDIS_DB = 4

DEBUG = False
Expand Down Expand Up @@ -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,
)

Expand Down

0 comments on commit 0a7a4c6

Please sign in to comment.