摘要: 1、服务器 + redis安装启动 2、django a、安装链接redis包 pip install django-redis b、settings.py ``` MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddlewar 阅读全文
posted @ 2024-05-04 16:27 芒果1024 阅读(11) 评论(0) 推荐(0) 编辑
摘要: INSTALLED_APPS = [ ...... 'django.contrib.sessions', ...... ] MIDDLEWARE = [ ...... 'django.middleware.common.CommonMiddleware', ...... ] # session SE 阅读全文
posted @ 2024-05-04 16:10 芒果1024 阅读(9) 评论(0) 推荐(0) 编辑
摘要: MIDDLEWARE = [ ...... 'django.contrib.sessions.middleware.SessionMiddleware', # 中间件中会对session进行操作 ...... ] # session SESSION_ENGINE = 'django.contrib. 阅读全文
posted @ 2024-05-04 15:58 芒果1024 阅读(5) 评论(0) 推荐(0) 编辑