标签:oca redis color engine end cli backend def options
pip install django-redis
CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", "OPTIONS": { "CLIENT_CLASS": "django_redis.client.DefaultClient", } } }
SESSION_ENGINE = "django.contrib.sessions.backends.cache" SESSION_CACHE_ALIAS = "default"
标签:oca redis color engine end cli backend def options
原文地址:https://www.cnblogs.com/Pythonzrq/p/12116634.html