Django项目中:Error 111 connecting to 10.211.55.5:6379. Connection refused.

解决办法:Redis数据库未连接上
修改Redis配置 中"LOCATION": “redis://127.0.0.1:6379/0”,

CACHES = {
“default”: {
“BACKEND”: “django_redis.cache.RedisCache”,
"LOCATION": “redis://127.0.0.1:6379/0”,
“OPTIONS”: {
“CLIENT_CLASS”: “django_redis.client.DefaultClient”,
}
},

猜你喜欢

转载自blog.csdn.net/duyi0803/article/details/83186958
今日推荐