feat: base 使用缓存处理session

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

View File

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