문제

I've just installed PyCharm, and have opened an existing project with multiple apps. When I open django templates, they are highlighted as if plain HTML, i.e. {% block %} elements and {{variable}} references are not treated specially.

Is there any way I can force it to use the django template syntax highlighter for these files? Or am I doing something wrong?

The project is configured as a django project.

도움이 되었습니까?

해결책

File » Settings » Template language, do you have Template language setting set to django?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top