关闭

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

标签: flask
825人阅读 评论(0) 收藏 举报
分类:

    最近用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的新规定吧。


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:11653次
    • 积分:393
    • 等级:
    • 排名:千里之外
    • 原创:28篇
    • 转载:2篇
    • 译文:0篇
    • 评论:1条
    文章分类