摘要: 一、CBV装饰器 要求:访问CBV函数视图需要先登录 1、含cookie的装饰器 # 登录认证装饰器cookie版 def login_auth(func): def inner(request, *args, **kwargs): if request.COOKIES.get('username' 阅读全文
posted @ 2023-08-11 15:32 凡人半睁眼 阅读(14) 评论(0) 推荐(0) 编辑