Legal Django cms template code is being flagged red.

The red flagged code in the pic below is legal in DJango CMS templates, so how do I get PyCharm to accept the code, as is?

 

5 comments

Please, attach screenshot with Settings| Languages&Frameworks| Python Template Languages. Thank you.

0

Happy to do so. I belive I'm using Jinja2 in the template.

0

Please, select Django as template language. What changes do you have in Editor window after it?

0

That did the trick. So even though Django cms uses jinja2, I should use django's base template. Thank you for your time!

0

Please feel free to ask any questions.

0

Please sign in to leave a comment.