From b1c2847997a32d6bdae42de84dd743a51cbf569e Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 3 Dec 2010 07:36:25 +0100 Subject: [PATCH] Renamed redis backend module to redisd to prevent import conflicts with redis-py. --- constance/backends/{redis.py => redisd.py} | 0 constance/settings.py | 2 +- tests/testproject/test_app/tests/test_config.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename constance/backends/{redis.py => redisd.py} (100%) diff --git a/constance/backends/redis.py b/constance/backends/redisd.py similarity index 100% rename from constance/backends/redis.py rename to constance/backends/redisd.py diff --git a/constance/settings.py b/constance/settings.py index a5948e1..d046868 100644 --- a/constance/settings.py +++ b/constance/settings.py @@ -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', {}) diff --git a/tests/testproject/test_app/tests/test_config.py b/tests/testproject/test_app/tests/test_config.py index cb3675d..3b18953 100644 --- a/tests/testproject/test_app/tests/test_config.py +++ b/tests/testproject/test_app/tests/test_config.py @@ -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']