随笔- 63
文章- 0
评论- 0
阅读-
5268
05 2022 档案
django(10)
摘要:csrf相关装饰器 from django.views.decorators.csrf import csrf_exempt,csrf_protect"""csrf_exempt 忽略csrf校验csrf_protect 开启csrf校验"""# 针对FBV@csrf_protect\@csrf_e
阅读全文
django(9)
摘要:django操作cookie补充 set_singned_cookie(key,value,salt='加密盐')set_singned_cookie(Key,value,max_age=超时时间:默认是秒数)expires:专门针对IE浏览器设置超时时间 HttpResponse对象.delete
阅读全文