Je veux utiliser Redis. Donc, je suivais ce tutoriel: https://github.com/sebleier/django-redis-cacheComment se fait-il que Django ne puisse pas parler à cette bibliothèque?
D'abord, j'installer Redis-py: https://github.com/andymccurdy/redis-py/
Ensuite, je mets dans mes paramètres: CACHE_BACKEND = 'redis_cache.cache://localhost:6379'
Alors je le fais dans mon views.py:
from redis_cache import cache #this imports just fine!
cache.set("haha","lala")
print cache.get("haha")
Mais pour une raison quelconque, je reçois un AttributeError:
Exception Type: AttributeError at/
Exception Value: 'module' object has no attribute 'set'