# Other library imports from redis import StrictRedis # Project imports from settings import settings # Define the Redis endpoint to the socket r = StrictRedis(unix_socket_path=settings.DB.RedisSocket, db=int(settings.DB.DB))