python - 基于 flask 写了个博客和论坛
伊谢尔伦
伊谢尔伦 2017-04-17 17:39:52
[Python讨论组]

一个人写的确很累,尤其是在前端方面,有兴趣的可以看看,虽然有的代码很 low

演示地址:
论坛: https://forums.honmaple.org/
博客: https://honmaple.com/

源码地址:
论坛:github.com/honmaple/maple-bbs
博客:github.com/honmaple/maple-blog

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回复(2)
阿神

pip install flask.ext.socketio

提示
Downloading/unpacking flask.ext.socketio
Could not fetch URL https://pypi.python.org/simple/flask.ext.socketio/: There was a problem co
ing routines:ASN1_item_verify:unknown message digest algorithm>
Will skip URL https://pypi.python.org/simple/flask.ext.socketio/ when looking for download lin
Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl ce
tem_verify:unknown message digest algorithm>
Will skip URL https://pypi.python.org/simple/ when looking for download links for flask.ext.so
Cannot fetch index base URL https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/flask.ext.socketio/: There was a problem co
ing routines:ASN1_item_verify:unknown message digest algorithm>
Will skip URL https://pypi.python.org/simple/flask.ext.socketio/ when looking for download lin
Could not find any downloads that satisfy the requirement flask.ext.socketio
No distributions at all found for flask.ext.socketio

搜索了一下,要用 pip install flask_socketio
这样能安装成功

但是运行

from flask.ext.socketio import SocketIO

提示 from flask.ext.socketio import SocketIO, emit
ImportError: cannot import name SocketIO
换成 from flask_socketio import SocketIO 也一样

迷茫

求问下place of file: maple/topic/forms.py后进行迁移会遇到
RuntimeError: application not registered on db instance and no application bound to current context

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号