Python django.conf.settings.REDIS_PASSWORD Examples
The following are 3
code examples of django.conf.settings.REDIS_PASSWORD().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.conf.settings
, or try the search function
.
Example #1
Source File: client.py From KortURL with MIT License | 5 votes |
def __init__(self): self._pool = redis.ConnectionPool(host=settings.REDIS_HOST, port=settings.REDIS_PORT, decode_responses=True, db=settings.MAP_CACHE_DB, password=settings.REDIS_PASSWORD) self.client = redis.Redis(connection_pool=self._pool)
Example #2
Source File: redis_utils.py From zulip with Apache License 2.0 | 5 votes |
def get_redis_client() -> redis.StrictRedis: return redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, password=settings.REDIS_PASSWORD, db=0)
Example #3
Source File: pwdmanager.py From freeipa-password-reset with GNU General Public License v3.0 | 5 votes |
def __init__(self): if self.__kerberos_has_ticket() is False: self.__kerberos_init() if api.isdone('finalize') is False: api.bootstrap_with_global_options(context='api') api.finalize() api.Backend.rpcclient.connect() self.redis = redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB, password=settings.REDIS_PASSWORD)