2020年6月8日

django的cookie验证_django

摘要: 一、cookie cookie:客户端浏览器上的一个文件(类似字典,键值对形式存在),换电脑或者换浏览器都不生效 1、基于cookie做用户验证 1 user_info={ 2 "test":{"pwd":"test"}, 3 "chen":{"pwd":"chen"}, 4 5 } 6 def l 阅读全文

posted @ 2020-06-08 14:57 陈小赞 阅读(542) 评论(0) 推荐(0) 编辑

django框架下的分页_django

摘要: 一、分页(函数) views: 1 def host_list(request): 2 #生成主机数据 3 hosts=[] 4 for i in range(1,254): 5 temp="192.168.1."+str(i) 6 hosts.append(temp) 7 8 #根据每页数据量和当 阅读全文

posted @ 2020-06-08 00:17 陈小赞 阅读(151) 评论(0) 推荐(0) 编辑

导航