Renamed redis backend module to redisd to prevent import conflicts with redis-py.

This commit is contained in:
Jannis Leidel 2010-12-03 07:36:25 +01:00
parent 9e70c52f85
commit b1c2847997
3 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ settings = import_module_attr(
PREFIX = getattr(settings, 'CONSTANCE_REDIS_PREFIX',
getattr(settings, 'CONSTANCE_PREFIX', 'constance:'))
BACKEND = getattr(settings, 'CONSTANCE_BACKEND', 'constance.backends.redis.RedisBackend')
BACKEND = getattr(settings, 'CONSTANCE_BACKEND', 'constance.backends.redisd.RedisBackend')
CONFIG = getattr(settings, 'CONSTANCE_CONFIG', {})

View file

@ -75,7 +75,7 @@ class TestRedis(TestCase, TestStorage):
def setUp(self):
self.old_backend = settings.BACKEND
settings.BACKEND = 'constance.backends.redis.RedisBackend'
settings.BACKEND = 'constance.backends.redisd.RedisBackend'
def tearDown(self):
del sys.modules['constance']