python - Adding Flask support to an existing Pycharm project -


i'm working on small project helpful display trivial web pages. it's being developed in pycharm, pro edition.

this existing project, wasn't created flask app begin with.

i've added flask requirements.txt , ensured installed. however, don't autocompletion of jinja templates - essentially, html file created treated dumb html.

how pycharm recognize i'm using flask , act accordingly?

ide screenshot

you have tell pycharm folders contain templates.

  1. go settings/project: name/project structure
  2. click on folder containing templates , click purple templates button.

it warn no template language specified. if case

  1. go settings/language & frameworks/python template languages
  2. in combobox template language: select template language (jinja?)
  3. under template file types select file type (probably html)

Comments