摘要: 有关docker的介绍啊,为什么 要使用docker啊这些就不说了,因为当你点开这篇作文的时候,你自己心里已经有了答案。那么我们现在就打开电脑,撸起袖子开始docker入门吧。 相关名词 镜像(image):一个打包好的应用,还有应用运行的系统、资源、配置文件等;容器(container):镜像的实 阅读全文
posted @ 2018-12-16 14:55 年轻人的魄力 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1、安装uwsgi注意: 1)在系统环境安装,非虚拟环境 2)使用对应python版本安装 3)要先安装python开发包 ###sudo apt-get install python3.6-dev pip3 install uwsgi 2、测试 uwsgi 是否正常:新建 test.py 文件,内 阅读全文
posted @ 2018-12-09 10:50 年轻人的魄力 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 安装python3.6 apt-get update apt-get install software-properties-common add-apt-repository ppa:jonathonf/python-3.6 apt-get update apt-get install pytho 阅读全文
posted @ 2018-12-09 10:11 年轻人的魄力 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-04 19:40 年轻人的魄力 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 爬虫几步 - 准备url - 准备start_url - url地址规律不明显,总数不确定 - 通过代码提取下一页的url - xpath - 寻找url地址,部分参数在当前的响应中(比如,当前页码数和总的页码数在当前的响应中) - 准备url_list - 页码总数明确 - url地址规律明显 - 阅读全文
posted @ 2018-11-28 11:41 年轻人的魄力 阅读(188) 评论(0) 推荐(0) 编辑
摘要: # > 用户注册与登录|找回密码1.页面没有逻辑操作 from django.views.generic import TemplateView urlpatterns = [ url(r'^$', TemplateView.as_view(template_name="index.html")) 阅读全文
posted @ 2018-11-17 08:34 年轻人的魄力 阅读(511) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/huangzhang_123/article/details/73733836 阅读全文
posted @ 2018-11-15 14:38 年轻人的魄力 阅读(69) 评论(0) 推荐(0) 编辑
摘要: DBUtils是Python的一个用于实现数据库连接池的模块。 此连接池有两种连接模式: 模式一:为每个线程创建一个连接,线程即使调用了close方法,也不会关闭,只是把连接重新放到连接池,供自己线程再次使用。当线程终止时,连接自动关闭。 POOL = PersistentDB( creator=p 阅读全文
posted @ 2018-11-09 13:06 年轻人的魄力 阅读(164) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/shikaishikai/p/9699076.html 阅读全文
posted @ 2018-11-09 12:54 年轻人的魄力 阅读(77) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u014793102/article/details/80316335 阅读全文
posted @ 2018-11-09 12:51 年轻人的魄力 阅读(98) 评论(0) 推荐(0) 编辑