摘要:
1、服务器 + redis安装启动 2、django a、安装链接redis包 pip install django-redis b、settings.py ``` MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddlewar 阅读全文
摘要:
INSTALLED_APPS = [ ...... 'django.contrib.sessions', ...... ] MIDDLEWARE = [ ...... 'django.middleware.common.CommonMiddleware', ...... ] # session SE 阅读全文
摘要:
MIDDLEWARE = [ ...... 'django.contrib.sessions.middleware.SessionMiddleware', # 中间件中会对session进行操作 ...... ] # session SESSION_ENGINE = 'django.contrib. 阅读全文