Djaneiro for PyCharm

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider Android Studio
3 091

This was originally a pure port of the Djaneiro plugin for Sublime Text, but new features have been added not found in the original plugin.

It's a collection of live templates for common patterns encountered when building Django applications (with a couple generic python uses) specifically useful for models, forms, widgets, views, and templates.

For example, the following expansions for models and forms can be made:

    mchar<TAB--> $FIELDNAME$ = models.CharField($name$ , max_length=50)$END$
    fchar<TAB--> $FIELDNAME$ = forms.CharField($ARGS$)$END$

Where each variable between dollar signs($) (e.g., $FIELDNAME$, $NAME$, etc) is a stopping point for the cursor each time enter is pressed.

The abbreviations generally adhere to the following conventions:

  • Model field templates are prefixed by 'm' with the exception of `fk`, `m2m`, and `o2o` fields
  • Form field templates are prefixed by 'f'
  • Widgets are prefixed by 'w'
  • Settings are prefixed by 's'
  • Template templates have no prefix, nor do generic python templates

For a full listing of the abbreviations, see the github repo:

Download plugin

Recent change notes

Added support for django settings and fixed a couple bugs

General usage instructions