Does PyCharm support Jinja2?

后端 未结 4 1639
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 07:50

A bottle project of mine uses Jinja2. PyCharm does not automatically recognize it and shows such lines as errors. Is there a way to make Jinja2 work?

4条回答
  •  暖寄归人
    2020-12-13 08:34

    Yes pro edition from pycharm does support Jinja2 to enable it go here

    From File open Settings and search for python template under Languages & Frameworks Select Python Template Languages from there Click HTML And Select Jinja2 as Template Language.

    please see the image for better understanding.

提交回复
热议问题