Flask
非空盒子
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
腾讯云部署flask
1.环境配置1.安装nginx安装$ sudo apt-get install nginx运行及停止/etc/init.d/nginx start #启动/etc/init.d/nginx stop #停止配置文件编辑文件:/etc/nginx/sites-available/default# 如果是多台服务器的话,则在此配置,并修改 location 节...原创 2019-03-09 16:18:26 · 696 阅读 · 0 评论 -
flask项目中的细节使用
1.random生成六位短信验证码的内容(随机数据),不够六位在前面补上0sms_code_str = "%06d" % random.randint(0, 999999)2.flask中request和responserequest获取json:'{"mobiel": "18811111111", "image_code": "AAAA", "image_code_id": "u23...原创 2019-06-10 19:06:54 · 286 阅读 · 0 评论 -
怎么退出/关闭/重启gunicorn进程
在工作中,会发现gunicorn启动的web服务,无论怎么使用kill -9 进程号都是无法杀死gunicorn第一步 :获取Gunicorn进程树:pstree -ap|grep gunicorn得到的结果如下Python| | |-grep,14519 --color=auto gunicorn| -gunico...原创 2019-03-10 14:11:27 · 3711 阅读 · 0 评论 -
使用flask_socketio
https://www.cnblogs.com/luozx207/p/9714487.htmlhttps://www.cnblogs.com/franknihao/p/7550043.htmlhttps://www.javazhiyin.com/645.htmlhttps://www.cnblogs.com/minsons/p/8251780.html 最详细https://bl...原创 2019-08-14 19:08:17 · 258 阅读 · 0 评论
分享