sebleier / django-redis-cache

A Redis cache backend for django
http://django-redis-cache.readthedocs.org/en/latest/
Other
1.04k stars 223 forks source link

No module named 'redis_cache.backends' #75

Closed foxmask closed 9 years ago

foxmask commented 9 years ago

Hi, since 1.0, my settings cache is

    'default': 
    {
        'TIMEOUT': 3600,
        "BACKEND": "redis_cache.RedisCache",
        "LOCATION": "127.0.0.1:6379",
        "OPTIONS": {
            "DB": 1,
            'PARSER_CLASS': 'redis.connection.HiredisParser'
        }
    }

and now, we get this errors :

django.core.cache.backends.base.InvalidCacheBackendError: Could not find backend 'redis_cache.RedisCache': No module named 'redis_cache.backends'

but previously, with version 0.13.x my settings were :

    'default':
    {
        'TIMEOUT': 3600,
        "BACKEND": "redis_cache.cache.RedisCache",
        "LOCATION": "127.0.0.1:6379",
        "OPTIONS": {
            "DB": 1,
            "CLIENT_CLASS": "redis_cache.client.DefaultClient",
        }
    },

the backends package seems to be missing from the installation, doesn't it ?

 ll lib/python3.4/site-packages/redis_cache/
total 28
-rw-r--r-- 1 foxmask foxmask  199 juin  24 10:25 cache.py
-rw-r--r-- 1 foxmask foxmask 1084 juin  24 10:25 compat.py
-rw-r--r-- 1 foxmask foxmask 1885 juin  24 10:25 connection.py
-rw-r--r-- 1 foxmask foxmask  111 juin  24 10:25 __init__.py
drwxr-xr-x 2 foxmask foxmask 4096 juin  24 10:25 __pycache__
-rw-r--r-- 1 foxmask foxmask 1367 juin  24 10:25 sharder.py
-rw-r--r-- 1 foxmask foxmask  529 juin  24 10:25 utils.py
foxmask commented 9 years ago

I mix this install with django-redis .... sorry

Hassanzadeh-sd commented 5 years ago

You can also install it with: pip install django-redis