Django - 将session存储位置修改至redis

Q / 2023-08-23 / 原文

 

# settings.py 中加入该配后自动生效
SESSION_ENGINE = "django.contrib.sessions.backends.cache"