There are two folders in the project root:

  • templates - here are jinja2 templates
  • static - there are folders with javascript, images and styles.

How to make it so that when I edit a template file from templates , PyCharm would understand the paths. For example:

 <link href="vendor/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> 

PyCharm cannot understand this path for me, it only understands if the templates and static files are in the same folder.

I tried to mark these folders as template folders , but nothing helped.

In WebStorm, what I’m looking for is called Resource Root.

    1 answer 1

    The Resource Root appeared in PyCharm 4.5 version.