from django.conf import settings


SESSION_REDIS_HOST = getattr(settings, 'SESSION_REDIS_HOST', 'localhost')
SESSION_REDIS_PORT = getattr(settings, 'SESSION_REDIS_PORT', 6379)
SESSION_REDIS_DB = getattr(settings, 'SESSION_REDIS_DB', 0)
SESSION_REDIS_PREFIX = getattr(settings, 'SESSION_REDIS_PREFIX', '')
SESSION_REDIS_PASSWORD = getattr(settings, 'SESSION_REDIS_PASSWORD', None)
SESSION_REDIS_UNIX_DOMAIN_SOCKET_PATH = getattr(
    settings, 'SESSION_REDIS_UNIX_DOMAIN_SOCKET_PATH', None
)
SESSION_REDIS_URL = getattr(settings, 'SESSION_REDIS_URL', None)

# should be on the format [(host, port), (host, port), (host, port)]
SESSION_REDIS_SENTINEL_LIST = getattr(
	settings, 'SESSION_REDIS_SENTINEL_LIST', None
)
SESSION_REDIS_SENTINEL_MASTER_ALIAS = getattr(
	settings, 'SESSION_REDIS_SENTINEL_MASTER_ALIAS', None
)
from django.conf import settings


SESSION_REDIS_CLUSTER_HOST = getattr(settings, 'SESSION_REDIS_CLUSTER_HOST', 'localhost')
SESSION_REDIS_CLUSTER_PORT = getattr(settings, 'SESSION_REDIS_CLUSTER_PORT', 6379)
SESSION_REDIS_CLUSTER_DB = getattr(settings, 'SESSION_REDIS_CLUSTER_DB', 0)
SESSION_REDIS_CLUSTER_PREFIX = getattr(settings, 'SESSION_REDIS_CLUSTER_PREFIX', '')
SESSION_REDIS_CLUSTER_PASSWORD = getattr(settings, 'SESSION_REDIS_CLUSTER_PASSWORD', None)


modify settings