小编mba*_*aki的帖子

AttributeError:尝试使用 Flask-Babel 时模块“jinja2.ext”没有属性“autoescape”

我是 Flask 和 Babel 的新手,我刚刚启动了一个包含多种语言的项目。生成 babel.cfg 文件后,当我尝试使用命令提取它时pybabel extract -F babel.cfg -o messages.pot .,出现AttributeError: module 'jinja2.ext' has no attribute 'autoescape' 错误。

此错误的原因可能是什么以及如何修复它?

谢谢

python flask python-babel

9
推荐指数
1
解决办法
6394
查看次数

标签 统计

flask ×1

python ×1

python-babel ×1