Moving from Pycharm to ST3, I’m missing some opportunities for projects on Django.

In particular, if other templates are included in the template using {% include%} or in the href attribute there is a link to the file, I can go and look at them

{% block css %} {{ block.super }} <link rel="stylesheet" type="text/css" href={% static 'table/css/table.css' %}> {% endblock %} {% block content %} <div class="header sidebar-spacer"> <div class="settings-button"></div> {% include 'table/template1.html' %} </div> {% include 'table/template2.html' %} <div class="footer sidebar-spacer"></div> {% endblock %} 

In this example, I can go on click and see the source code table.css , templates template1, template2 .

In representations a similar picture

 class ElementListView(ListView): template_name = "table/table.html" model = Element ... 

I can't see the source code for the ListView method, the template table.html

There are plugins for ST that will simulate Pycharm work and will be useful for Python / Django projects?

  • Even free picharm, better sublime, I think. - Mr Fix
  • one
    while1pass, since you do not use variables in the paths, the Open Include plugin is sufficient. Demonstration I have never used Django Templates, but if constructions like {{SITEURL}}/{{ THEME_STATIC_DIR }}/bower-components/jquery/dist/jquery.min.js are used there like in Jinja2, for such ways I don’t know how to be . Thank. - Sasha Chernykh
  • one
    while1pass, yes, and this question FuzzyFilePath does not solve, but I recommend to pay attention to this package, which simplifies working with relative paths. Thank. - Sasha Chernykh
  • while1pass, have any comments? Can I post these comments as an answer? Thank. - Sasha Chernykh
  • one
    while1pass, the latest versions of Open Include do not work properly for me + the developer does not accept issues. There is an alternative - Open URL . And I created an issue there to support the templates. Thank. - Sasha Chernykh

0