一、安装教程 :https://www.cnblogs.com/Koaler/p/11957300.html (感谢作者的分享)
二、在django中配置了redis缓存后提示找不到django-redis
```python
#配置缓存
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
'session-redis':{
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
}
}
SESSION_CACHE_ALIAS = 'session-redis'
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
报错:
InvalidCacheBackendError: Could not find backend 'django_redis.cache.RedisCache': No module named django_redis.cache
解决方法:
在inspector里面安装一下django-redis的包。