PyCharm Django project with Jinja2 templates - no named URL tags or navigation



We migrated our Django project to use Jinja2 templates, but now don't get Django specific autocompletion (it worked before on Django's own template language). For example (the big one) when we create named url tags the route name isn't suggested.


    {{ url('some_route')  }}


These are the 2 key features which are no longer working. Normal Jinja2 tags such as `{% extends ... %}` etc work ok, so PyCharm certainly knows the files are Jinja2. It seems to be just the Django specific stuff which isn't working.




Does anyone have any suggestions? I've trawled through settings and set everything in the way in which I think should work. I'm using PyCharm Professional.


Thanks for your help.

1 comment
Comment actions Permalink


I think it should work, since we support Jinja2 templates for Django.

Could you provide a project example that reproduces the issue?


Please sign in to leave a comment.