素材牛VIP会员
基于 flask 写了个博客和论坛
 Al***ay  分类:Python  人气:919  回帖:2  发布于6年前 收藏

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

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

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

 标签:flaskpython

讨论这个帖子(2)垃圾回帖将一律封号处理……

Lv4 码徒
日***天 职业无 6年前#1

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 也一样

Lv7 码师
ha***23 职业无 6年前#2

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

 文明上网,理性发言!   😉 阿里云幸运券,戳我领取