会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
愿你永不知天高地厚
Don't overestimate yourself. Don't underestimate yourself.
博客园
首页
新随笔
联系
订阅
管理
2019年6月18日
django CBV装饰器 自定义django中间件 csrf跨站请求伪造 auth认证模块
摘要: CBV加装饰器 第一种 @method_decorator(装饰器) 加在get上 第二种 @method_decorator(login_auth,name='get') 加在类上 第三种 @method_decorator(login_auth) 加在dispatch上 3.7的要return
阅读全文
posted @ 2019-06-18 22:09 读自己
阅读(339)
评论(0)
推荐(0)
公告