Reputation: 1159
Django support is enabled for the project. Under Edit -> Settings -> Python Template Languages
Django is selected for HTML files. and under Settings -> Editor -> Live Templates -> Django
I have created a new entry as follows:
Abbreviation: include
Description: {% include "" %}
Template text: {% include "$VAR$" %}
Expand with: Default (Tab)
Reformat according to style: unchecked
But when I try to expand this in the template, include
becomes <include></include>
. I have tried restarting pycharm and the computer to no effect. Have I misunderstood how to create an abbreviation expansion or is this a known bug? Thanks.
OS: Ubuntu 14.04
Pycharm: 4.0.1
Upvotes: 0
Views: 219
Reputation: 241
Under template's text "No applicatable context Define". Press Define and select "Django Templates"
Upvotes: 2