随笔分类 -  Python后端:Flask

SQLAlchemy 报错:ImportError: cannot import name 'TYPE_CHECKING',安装的版本有bug,换版本解决
摘要:报错内容: [2021-04-14 20:43:32 +0800] [8560] [ERROR] Exception in worker process Traceback (most recent call last): File "/data/app/abadmin/current/venv/l 阅读全文

posted @ 2021-04-15 14:29 cag2050 阅读(1318) 评论(0) 推荐(0) 编辑

Flask 项目里,接口本地调试的2种方式
摘要:Flask 项目里,接口本地调试的2种方式: 把函数加上注解@app.cli.command,然后使用flask命令:flask one_command 使用命令行flask run运行项目,然后curl请求进行调试 阅读全文

posted @ 2021-02-23 10:59 cag2050 阅读(666) 评论(0) 推荐(0) 编辑

Flask-Caching 学习资料
摘要:Flask-Caching 是 Flask-Cache 扩展( https://github.com/thadeusb/flask-cache )的派生(fork),旨在替代缺乏维护的后者。 Flask-Caching 学习资料 说明 Flask-Caching https://flask-cach 阅读全文

posted @ 2021-01-18 19:44 cag2050 阅读(194) 评论(0) 推荐(0) 编辑

peewee 报错:ImportError: No module named 'MySQLdb';pymysql 报错:from . import connections # noqa: E402
摘要:报错内容: Traceback (most recent call last): File "/data/app/abadmin/current/venv/lib/python3.5/site-packages/peewee.py", line 49, in <module> import MySQ 阅读全文

posted @ 2021-01-12 17:02 cag2050 阅读(909) 评论(0) 推荐(0) 编辑

Flask 学习资料
摘要:Flask 学习资料 网址 Flask 中文文档 http://www.pythondoc.com/flask/index.html (http://www.pythondoc.com/ 上面很多python中文文档,所在github:https://github.com/sixu05202004/ 阅读全文

posted @ 2020-12-31 11:18 cag2050 阅读(100) 评论(0) 推荐(0) 编辑

itsdangerous 知识点
摘要:资料 网址 中文文档 https://juejin.im/entry/56b30250df0eea0054375e1d 官方文档 https://itsdangerous.palletsprojects.com/en/1.1.x/ 阅读全文

posted @ 2020-06-27 01:01 cag2050 阅读(107) 评论(0) 推荐(0) 编辑

报错:peewee.OperationalError: Connection already opened,用过的解决方案:1. 将数据库插入语句放在视图函数里;2. 使用模板改为使用接口;
摘要:相关资料 网址 Connection Management http://docs.peewee-orm.com/en/latest/peewee/database.html?highlight=Connection%20already%20opened#connection-management 阅读全文

posted @ 2020-06-23 01:33 cag2050 阅读(778) 评论(0) 推荐(0) 编辑

Flask-Principal 知识点
摘要:Flask-Principal 资料 网址 官方中文文档 https://flask-principal-cn.readthedocs.io/zh_CN/latest/ 官方英文文档 https://pythonhosted.org/Flask-Principal/ github https://g 阅读全文

posted @ 2020-06-14 11:19 cag2050 阅读(525) 评论(0) 推荐(0) 编辑

flask-cors 知识点
摘要:资料 网址 官方文档 https://flask-cors.corydolphin.com/en/latest/index.html 阅读全文

posted @ 2020-06-02 21:43 cag2050 阅读(168) 评论(0) 推荐(0) 编辑

Flask 常用的扩展
摘要:Flask 常用的扩展 官方网址 中文翻译 flask-restplus https://flask-restplus.readthedocs.io/en/stable/ https://github.com/hanerx/flask-restplus-cn-doc peewee http://do 阅读全文

posted @ 2020-06-02 10:17 cag2050 阅读(267) 评论(0) 推荐(0) 编辑

flask-restplus 知识点
摘要:Request parsing:https://flask-restplus.readthedocs.io/en/stable/api.html?highlight=store_missing#module-flask_restplus.reqparse 资料 网址 官方搜索页(搜索比较方便) ht 阅读全文

posted @ 2020-05-28 21:10 cag2050 阅读(532) 评论(0) 推荐(0) 编辑

Peewee(Python ORM 框架)知识点
摘要:资料 网址 字段类型表 https://www.osgeo.cn/peewee/peewee/models.html#field-types-table , http://docs.peewee-orm.com/en/latest/peewee/models.html#field-types-tab 阅读全文

posted @ 2020-05-26 21:03 cag2050 阅读(287) 评论(0) 推荐(0) 编辑

Gunicorn 知识点
摘要:命令 说明 gunicorn --help 阅读全文

posted @ 2020-05-26 10:52 cag2050 阅读(147) 评论(0) 推荐(0) 编辑

gunicorn部署flask的log处理
摘要:出处:https://zhuanlan.zhihu.com/p/36909560 阅读全文

posted @ 2020-05-25 20:19 cag2050 阅读(1013) 评论(0) 推荐(0) 编辑

书籍《Flask Web开发实战:入门、进阶与原理解析》,相关资料网址
摘要:相关资料 | 网址 | 除书中第二部分以外的示例程序 | https://github.com/greyli/helloflask 关于本书的网站 | http://helloflask.com/ Python 的 .gitignore | https://github.com/github/git 阅读全文

posted @ 2020-05-17 10:24 cag2050 阅读(420) 评论(0) 推荐(0) 编辑

flask 命令行
摘要:```$ flask --helpUsage: flask [OPTIONS] COMMAND [ARGS]... A general utility script for Flask applications. Provides commands from Flask, extensions, and the application. Loads the application defin... 阅读全文

posted @ 2020-05-17 10:11 cag2050 阅读(592) 评论(0) 推荐(0) 编辑

导航

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