Skip to content

chlab/pycharm-django-live-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django template snippets for PyCharm

PyCharm supports auto-expanding certain keywords in Django templates to the corresponding Django template tag. PyCharm calls these live templates, other programs call them snippets. By default, only a handful of template tags are supported. This repo reflects my efforts of creating the remaining ones as I need them.

How to use

Download Django.xml from this repo and put it in the templates directory of your preferences directory, e.g. on OS X ~/Library/Preferences/<PRODUCT><VERSION>/templates/Django.xml.

Use them in django templates like so:

Screencast

Contribute

Missing tags? Define them in PyCharm Settings > Editor > Live Templates > Django. Look at the other tags to see how to define them. Please send a pull request and I'll be happy to merge it!

Releases

No releases published

Packages

No packages published