上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 46 下一页
摘要: 1.打开drf官网https://www.django-rest-framework.org/,把相关的包pip install 2.INSTALLED_APPS添加drf 3.url配置 4.test 阅读全文
posted @ 2019-04-04 10:02 chester·chen 阅读(433) 评论(0) 推荐(0)
摘要: django返回json有以下三个版本 阅读全文
posted @ 2019-04-04 09:47 chester·chen 阅读(1243) 评论(0) 推荐(0)
摘要: 当我们需要向服务器发送图片或视频,需要对这些媒体文件进行保存时,需要指定保存在哪并将保存的路径添加到路由中。 1.设置settings.py 2.路由设置 3.获取图片 阅读全文
posted @ 2019-04-03 17:19 chester·chen 阅读(144) 评论(0) 推荐(0)
摘要: 方法1: 然后import对应的model并操作 方法2: 新建py脚本 阅读全文
posted @ 2019-04-03 16:40 chester·chen 阅读(228) 评论(0) 推荐(0)
摘要: 1.右键项目,Mark Directory As Source Root 2.settings配置 3.import包时可忽略app名了 阅读全文
posted @ 2019-04-03 14:32 chester·chen 阅读(446) 评论(0) 推荐(0)
摘要: 在settings.py中加入 即可在html中引用该目录下的静态文件 效果如下 阅读全文
posted @ 2019-04-03 14:14 chester·chen 阅读(546) 评论(0) 推荐(0)
摘要: from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.... 阅读全文
posted @ 2019-03-29 14:07 chester·chen 阅读(636) 评论(0) 推荐(0)
摘要: 1.安装 2.Demo 参考:https://www.cnblogs.com/zhaof/p/6953241.html 阅读全文
posted @ 2019-03-29 13:13 chester·chen 阅读(217) 评论(0) 推荐(0)
摘要: 1.安装 使用国内镜像源 2.Demo 参考:https://www.cnblogs.com/zhaof/p/6935473.html 阅读全文
posted @ 2019-03-28 16:29 chester·chen 阅读(441) 评论(0) 推荐(0)
摘要: 1.安装模块 使用国内镜像源安装 2.Demo 3.备注 find_all,find,select等方法查到的bs4.element.Tag类型的对象,可继续使用这些方法进行链条查询 参考https://www.cnblogs.com/zhaof/p/6930955.html 阅读全文
posted @ 2019-03-28 13:26 chester·chen 阅读(628) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 46 下一页