IntelliJ IDEA Python plugin - how to get HTML files to be treated as Django templates?

I am using IntelliJ IDEA 13 Ultimate with the Python plugin. I opened the existing folder containing the Django project (which I created using Vim) as an IntelliJ project and included the Django facet on it. However, my HTML files are still treated as simple HTML files. Django tags and syntax are not recognized. I remember that Django templates were automatically recognized by IntelliJ in an earlier project, but cannot play it now.

How can I get IntelliJ to recognize my template files as Django templates?

+6
source share
1 answer

Here's how I did it on IntelliJ IDEA 14 for Jinja2 templates (similar to Django): Settings > Languages & Frameworks > Python Template Languages : select "HTML files" from the list and select "Jinga2" for the template language.

+10
source

All Articles