At the moment, we are using jinja2 to generate python code. And the file would have both jinja template code and python code as well. The problem is pycharm (we use community edition) are not happy with this. It's mark it as a syntax error, that is so inconvenient. Like this:
//python code
{% include 'templates/base.py'%}
//python code
Do you have any solution to make IDE understand this and will not mark it as syntax error? Since we need code completion in these files.
Thank you very much!