2019年4月11日

摘要: 引入模块: from django.utils.decorators import method_decorator 添加:@method_decorator(func) from django.utils.decorators import method_decorator def outer(func): def inner(request, *args, **kwargs): ... 阅读全文
posted @ 2019-04-11 19:46 JieFangZhe 阅读(169) 评论(0) 推荐(0)
摘要: Cookie: 就是保存在浏览器端的键值对 可以利用做登录 1、保存在用户浏览器 2、可以主动清楚 3、也可以被“伪造” 4、跨域名cookie不共享 5、浏览器设置不接受cookie Cookie是什么? 客户端浏览器上保存的键值对 设置: 服务端操作的Cookie obj.set_cookie( 阅读全文
posted @ 2019-04-11 14:17 JieFangZhe 阅读(102) 评论(0) 推荐(0)

导航