mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Renamed redis backend module to redisd to prevent import conflicts with redis-py.
This commit is contained in:
parent
9e70c52f85
commit
b1c2847997
3 changed files with 2 additions and 2 deletions
|
|
@ -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', {})
|
||||
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in a new issue