上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 42 下一页
摘要: 当我们需要向服务器发送图片或视频,需要对这些媒体文件进行保存时,需要指定保存在哪并将保存的路径添加到路由中。 1.设置settings.py 2.路由设置 3.获取图片 阅读全文
posted @ 2019-04-03 17:19 chester·chen 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 方法1: 然后import对应的model并操作 方法2: 新建py脚本 阅读全文
posted @ 2019-04-03 16:40 chester·chen 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.右键项目,Mark Directory As Source Root 2.settings配置 3.import包时可忽略app名了 阅读全文
posted @ 2019-04-03 14:32 chester·chen 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 在settings.py中加入 即可在html中引用该目录下的静态文件 效果如下 阅读全文
posted @ 2019-04-03 14:14 chester·chen 阅读(533) 评论(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 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 1.安装 2.Demo 参考:https://www.cnblogs.com/zhaof/p/6953241.html 阅读全文
posted @ 2019-03-29 13:13 chester·chen 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1.安装 使用国内镜像源 2.Demo 参考:https://www.cnblogs.com/zhaof/p/6935473.html 阅读全文
posted @ 2019-03-28 16:29 chester·chen 阅读(411) 评论(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 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 1.Kafka相关知识 Broker:即Kafka的服务器,用户存储消息,Kafa集群中的一台或多台服务器统称为broker。 Message消息:是通信的基本单位,每个 producer 可以向一个 topic(主题)发布一些消息。 Kafka中的Message是以topic为基本单位组织的,不同 阅读全文
posted @ 2019-01-11 07:12 chester·chen 阅读(8853) 评论(0) 推荐(6) 编辑
摘要: 1.zookeeper简单介绍 1.1作用 zookeeper的作用是存储kafka的服务器信息,topic信息,和cunsumer信息。如下图: 而zookeeper是个什么东西呢?简单来说就是一个具有通知机制的文件系统,引用网路上的一张图 可以看出来zookeeper是一个树形的文件结构,我们可 阅读全文
posted @ 2019-01-10 17:25 chester·chen 阅读(2430) 评论(0) 推荐(1) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 42 下一页