
flask
与人点
这个作者很懒,什么都没留下…
展开
-
flask天气预报json数据的读取
def get_weather(query1): api_url = "http://www.sojson.com/open/api/weather/json.shtml?city={}" # GBK的url编码 将空格等转换 #query1 = urllib.quote(query1) # url = api_url.format() +unicode(query原创 2017-11-19 19:44:50 · 572 阅读 · 0 评论 -
centos7 Supervisor配置 gunicorn 资料
Supervisor安装与配置(Linux/Unix进程管理工具)https://blog.youkuaiyun.com/xyang81/article/details/51555473supervisord安装,启动/关闭,添加开机自启动服务https://blog.youkuaiyun.com/binggoogle/article/details/53203991解决unix:///tmp/super...原创 2018-09-13 11:19:34 · 422 阅读 · 0 评论 -
也谈云主机centos7+nginx+gunicorn+flask配置
关于此类部署网上资料很多,但自己配置起来有许多错误。关键点在nginx.conf的配置上,作为云主机:IP地址设置关键,此前一直赚不到80端口上,最后将IP地址改为 proxy_pass http://0.0.0.0:8000; 问题解决。如下:location / { #root html; #index index.html index.ht...原创 2018-09-11 11:18:17 · 223 阅读 · 0 评论 -
2017IIS+python+flask环境搭建
尝试python+flask开发网页,碰到服务器是IIS,网上查询各类资料就是不成功,在bing上翻阅,于是就是以上几篇转载,也测试成功!总结如下:1、IIS的CGI要选择, 2、安装python2.7,并将安装路径添加到环境变量path3、添加WFASTCGI pip install wfastcgi4、激活 wfastcgi ...原创 2017-11-16 11:44:32 · 7749 阅读 · 3 评论 -
flask-on-iis
The major document I read was wfastcgi on pypi: https://pypi.python.org/pypi/wfastcgiI also googled with these key words "python flask iis"https://azure.microsoft.com/en-us/documentation/artic转载 2017-11-15 21:55:34 · 406 阅读 · 0 评论 -
Publish Flask on IIS
Hello, today i gonna show How to publish Flask To IIS .OK now let start:make sure you installed Internet Information Service from your window. if you are not ready for install it you can try by th转载 2017-11-15 21:12:56 · 270 阅读 · 0 评论 -
FLASK ON IIS
http://netdot.co/2015/03/09/flask-on-iis/While Windows Server is usually not my preferred OS for deploying Python based web[sites|services] sometimes the situation dictates it. For situations wh转载 2017-11-15 20:49:30 · 436 阅读 · 0 评论 -
How do I deploy a Flask application in IIS?
https://stackoverflow.com/questions/5072166/how-do-i-deploy-a-flask-application-in-iisSetup StepsStep 1: Install Required BinariesInstall Python (2.7 or 3.x -- I used 3.3)Install pip转载 2017-11-15 20:38:40 · 411 阅读 · 0 评论 -
FLASK (CURRENCY)汇率换算api JSON数据读取显示实现
def get_rate(frm, to): CURRENCY_URL=”https://api.fixer.io/2017-11-03” all_currency = urllib2.urlopen(CURRENCY_URL).read() parsed = json.loads(all_currency).get(‘rates’) frm_rate原创 2017-11-19 20:02:13 · 832 阅读 · 0 评论 -
云主机centos+nginx+gunicorn+supervisor+flask配置产生问题总结
nginx默认生成配置文件在/etc/nginx/nginx.conf要注意配置server 时 server_name为云主机的ip地址;配置gunicorn 代理时location /{//gunicorn地址 http://0.0.0.0:8000//有资料上说监听所有的ip地址,不然执行gunicorn时找不到服务器}静态文件应该放于location /stat...原创 2018-09-13 16:45:18 · 224 阅读 · 0 评论