07 2019 档案

摘要:import threading import time from queue import Queue import requests from lxml import etree class QiuBaiSpider(object): # 1.爬取的的网站,和请求头 def __init__(self): self.base_url = 'https:/... 阅读全文
posted @ 2019-07-31 15:48 Mr_Smith 阅读(143) 评论(0) 推荐(0) 编辑
摘要:代码 阅读全文
posted @ 2019-07-29 18:33 Mr_Smith 阅读(102) 评论(0) 推荐(0) 编辑
摘要:#使用mark_safe函数标记后,django将不再对该函数的内容进行转义 阅读全文
posted @ 2019-07-29 18:20 Mr_Smith 阅读(717) 评论(0) 推荐(0) 编辑
摘要:Request预处理函数: process_request(self, request) View预处理函数: process_view(self, request, callback, callback_args,callback_kwargs) Template模版渲染函数:process_te 阅读全文
posted @ 2019-07-28 22:14 Mr_Smith 阅读(97) 评论(0) 推荐(0) 编辑
摘要:Flask-Script 1.我们可以在Flask服务器启动的时候,通过命令行的方式传入参数 2.当前应用程序添加脚本命令 Flask-WTF 1.我们可以使用 Flask-WTF 扩展,它封装了 WTForms,并且它有验证表单数据的功能 Flask-SQLAlchemy 1.SQLALchemy 阅读全文
posted @ 2019-07-24 18:48 Mr_Smith 阅读(1152) 评论(0) 推荐(0) 编辑
摘要:from django.contrib.auth.models import AbstractUser 在Settings 中 加入 AUTH_USER_MODEL = 'myapp.UserInfo' 即'app.类名' 在 manage.py task 中 makemigrations 之后 m 阅读全文
posted @ 2019-07-04 22:42 Mr_Smith 阅读(585) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示