摘要:
中间件基础 crsf相关装饰器 from django.views.decorators.csrf import csrf_exempt,csrf_protect """ csrf_exempt 忽略csrf校验 csrf_protect 开启csrf校验 """ # 针对FBV @csrf_pro
阅读全文
posted @ 2022-05-25 23:51
等秋叶的七月
阅读(69)
推荐(0)
编辑
摘要:
cookie和中间件 作业讲解 def login_auth(func_name): def inner(request, *args, **kwargs): # print(request.path) # print(request.path_info) # 1.获取用户没有登录之前想要访问的网址
阅读全文
posted @ 2022-05-25 00:40
等秋叶的七月
阅读(94)
推荐(0)
编辑