天行健

君子以自强不息

.format(x=modname), ExtDeprecationWarning的原因

    最近用flask发现老是出现:

  .format(x=modname), ExtDeprecationWarning
C:\Users\Administrator\version\lib\site-packages\flask\exthook.py:71: ExtDepreca
tionWarning: Importing flask.ext.moment is deprecated, use flask_moment instead.

  .format(x=modname), ExtDeprecationWarning
C:\Users\Administrator\version\lib\site-packages\flask\exthook.py:71: ExtDepreca
tionWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy
instead.
  .format(x=modname), ExtDeprecationWarning
C:\Users\Administrator\version\lib\site-packages\flask\exthook.py:71: ExtDepreca
tionWarning: Importing flask.ext.mail is deprecated, use flask_mail instead.
  .format(x=modname), ExtDeprecationWarning
C:\Users\Administrator\version\lib\site-packages\flask\exthook.py:71: ExtDepreca
tionWarning: Importing flask.ext.login is deprecated, use flask_login instead.
  .format(x=modname), ExtDeprecationWarning
C:\Users\Administrator\version\lib\site-packages\flask\exthook.py:71: ExtDepreca
tionWarning: Importing flask.ext.pagedown is deprecated, use flask_pagedown inst
ead.
  .format(x=modname), ExtDeprecationWarning
    后来一查才发现是https://github.com/MongoEngine/flask-mongoengine/issues/222

    也就是把所有flask.ext.XXX改写成flask_XXX,这应该是flask1.1的新规定吧。


阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a447685024/article/details/52372444
文章标签: flask
个人分类: Flask
上一篇使用flask-avatar生成博客头像
下一篇在flask实现CKEditor和在网页上显示图片
博主设置当前文章不允许评论。

没有更多推荐了,返回首页

关闭
关闭