时间:2021-07-01 10:21:17 帮助过:13人阅读
CBV:
from django.views.decorators.csrf import csrf_exempt, csrf_protect from django.utils.decorators import method_decorator @method_decorator(csrf_exempt, name="dispatch") class BookView(views.View): def get(self, request): pass
DBV和CBV单独去除csrf_token验证
标签:请求 exce method end 视图 strong 原理 csrf 中间件