Python django.conf.settings.REDIS_PASSWORD Examples

The following are 3 code examples for showing how to use django.conf.settings.REDIS_PASSWORD(). These examples are extracted from open source projects. 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 check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module django.conf.settings , or try the search function .

Example 1
Project: KortURL   Author: yandenghong   File:    License: MIT License 5 votes vote down vote up
def __init__(self):
        self._pool = redis.ConnectionPool(host=settings.REDIS_HOST, port=settings.REDIS_PORT,
                                          decode_responses=True, db=settings.MAP_CACHE_DB,
        self.client = redis.Redis(connection_pool=self._pool) 
Example 2
Project: zulip   Author: zulip   File:    License: Apache License 2.0 5 votes vote down vote up
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
Project: freeipa-password-reset   Author: larrabee   File:    License: GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        if self.__kerberos_has_ticket() is False:
        if api.isdone('finalize') is False:
        self.redis = redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB, password=settings.REDIS_PASSWORD)