摘要: 1 2 3 4 5 控件 6 57 58 59 60 61 62 63 阅读全文
posted @ 2017-12-26 11:55 时间影像 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 11 12 22 23 24 25 26 27 28 阅读全文
posted @ 2017-12-26 11:55 时间影像 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 异步加载 6 43 44 45 46 47 48 49 阅读全文
posted @ 2017-12-26 11:53 时间影像 阅读(3881) 评论(0) 推荐(0) 编辑
摘要: def deco(func): def _deco(request): reqFun=None try: loginbean = request.session['loginbean'] if loginbean == None: return HttpResponse("")... 阅读全文
posted @ 2017-11-18 16:11 时间影像 阅读(309) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from urllib.request import Request from urllib.request import urlopen #添加模拟浏览器协议头 headers = {'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/2... 阅读全文
posted @ 2017-11-13 20:43 时间影像 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.前台 上传身份证照片 个人手持身份证照片 {% csrf_token %} 2.后台 def writerApply(request): try: loginbean = request.session['loginbean'] ... 阅读全文
posted @ 2017-11-13 09:14 时间影像 阅读(133) 评论(0) 推荐(0) 编辑
摘要: http://www.jianshu.com/p/22af55518f6d //-----------------换将搭建---------------------------- 1.安装ruby C:\tools\redis\redis集群\ 勾三个勾 2.安装RubyGems 解压运行C:\tools\redis\redis集群\rubygems-2.5.1里面的 setup.rb 安装 ... 阅读全文
posted @ 2017-11-08 20:57 时间影像 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 内存数据库: 1.双击redis-server.exe =>启动 2.双击redis-cli.exe =>打开管理控制台 3.查看所有key keys * 4.查看key类型 type myKey 操作: 1.字符串类型: 创建和修改: set user 'zhangsan' 获得key的值 get user 删除键 ... 阅读全文
posted @ 2017-11-08 20:56 时间影像 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 前端:<form method="post" action="./userRegister"> {% csrf_token %} <input type="text" name="email" class="form-control" placeholder="用户名"><br> <input ty 阅读全文
posted @ 2017-11-06 21:05 时间影像 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 新方法连mysql:1.先安装: pip install mysqlclient2.settings.py中 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # 或者使用 mysql.connector.django 阅读全文
posted @ 2017-11-06 21:04 时间影像 阅读(66) 评论(0) 推荐(0) 编辑