feat: base 使用缓存处理session及csrf适应

This commit is contained in:
caoqianming 2024-12-10 18:52:51 +08:00
parent 085cf20b1a
commit 1d34df1985
1 changed files with 1 additions and 0 deletions

View File

@ -199,6 +199,7 @@ REST_FRAMEWORK = {
}
# session配置
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CSRF_COOKIE_NAME = 'csrftoken'
# simplejwt配置
SIMPLE_JWT = {