feat: base 使用缓存处理session

This commit is contained in:
caoqianming 2024-12-10 18:38:11 +08:00
parent e6cad72807
commit 043193eda7
1 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,9 @@ REST_FRAMEWORK = {
'user': '200/second'
}
}
# session配置
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
# simplejwt配置
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(days=7),