摘要: 根据教程到添加并保存quest的时候报错了 1.models.py里面的命名没有错 2.查看mysite->settiongs下的INSTALLED_APPS设置正确 3.使用python manage.py makemigrations polls没有修改的内容 4.查看0001_***.py正常 阅读全文
posted @ 2018-08-31 11:03 keeptheminutes 阅读(2903) 评论(0) 推荐(0) 编辑
摘要: 链接文档地址:https://docs.djangoproject.com/zh-hans/2.0/intro/tutorial02/ 由于我使用的是mysql,所以设置的是mysql的: 在myslte的settings.py配置DATABASE 配置好后将生成的py文件应用到数据库:python 阅读全文
posted @ 2018-08-30 14:13 keeptheminutes 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 附上Django教程地址:https://docs.djangoproject.com/zh-hans/2.0/intro/tutorial01/ 1.通过pip install django==2.0 安装指定的版本号 (最开始我是使用pip install django,安装的是1.11..,然 阅读全文
posted @ 2018-08-29 17:51 keeptheminutes 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 使用pumsql封装的部分功能 request_html:打开www.qq.com的例子 结果: PS:记得处理数据 阅读全文
posted @ 2018-07-19 10:59 keeptheminutes 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 报错信息:selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: Compound class names not permitted 解决方法:使用其它的定位方法,这个问题是由于定位的class 阅读全文
posted @ 2018-04-23 14:54 keeptheminutes 阅读(2125) 评论(0) 推荐(0) 编辑
摘要: 1.报错信息是:TypeError: Unicode-objects must be encoded before hashing 2.报错信息是:TypeError: object supporting the buffer API required 正确的写法应该是 代码: import has 阅读全文
posted @ 2017-07-04 10:26 keeptheminutes 阅读(5347) 评论(0) 推荐(1) 编辑
摘要: Python+Android+uiautomator的环境搭建 Python 下载适合系统的版本并安装,安装时勾选把路径加入path 验证:windows下打开cmd输入python 出现以下界面说明安装成功 Android 下载安装路径:http://tools.android-studio.or 阅读全文
posted @ 2017-06-27 10:32 keeptheminutes 阅读(3390) 评论(0) 推荐(0) 编辑
摘要: 1.多表查询 阅读全文
posted @ 2017-05-08 16:49 keeptheminutes 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 新建文件夹 mkdir 文件名 mkdir wenjianjia 新建文件 type NUL > 文件名.文件类型 阅读全文
posted @ 2017-01-22 10:53 keeptheminutes 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 安装流程: 1.安装Python34 2.安装pip 下载setuptoos并安装,然后输入:easy_install pip 然后 配置path:C:\Python34\Scripts 3安装selenium :输入 pip install selenium,后来出现问题Unknown or un 阅读全文
posted @ 2016-08-29 17:32 keeptheminutes 阅读(4362) 评论(0) 推荐(0) 编辑