ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Django

by mattseymour ALL

Snippets for django based projects

Details

Installs

  • Total 58K
  • Win 28K
  • Mac 11K
  • Linux 20K
Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13
Windows 0 4 2 0 4 0 2 3 2 2 2 4 4 1 5 5 2 6 1 3 5 0 4 1 1 5 4 1 3 4 1 2 4 2 2 0 4 3 1 9 6 3 3 2 3 4
Mac 0 0 0 0 1 0 0 0 0 0 0 1 0 2 2 2 0 0 0 1 2 1 2 1 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0 1 0 0 1 1 1 0
Linux 0 5 0 1 0 1 3 0 4 2 2 1 2 0 0 1 5 0 0 1 2 4 0 0 2 2 1 1 3 1 0 0 2 2 1 4 3 0 2 0 2 2 0 1 0 1

Readme

Source
raw.​githubusercontent.​com

sublime snippets for django projects

This package can be found and downloaded on package control

A set of useful sublime snippets for use with Django. If you have snippet which is useful with django submit a pull request or raise a github issue.

Current snippets:

Models

  • mauto - AutoField
  • mbigint - BigIntegerField
  • mbinary - BinaryField
  • mchar - CharField
  • mcomma - CommaSeparatedIntegerField
  • mdate - DateField
  • mdatetime - DateTimeField
  • mdecimal - DateTimeField
  • mduration - DurationField
  • memail - EmailField
  • mfile - FileField
  • mfilepath - FilePathField
  • mfloat - FloatField
  • mimage - ImageField
  • mint - IntField
  • mip - GenericIPAddressField
  • mnullbool - NullBooleanField
  • mintpos - PositiveIntegerField
  • mintsmallpos - PositiveSmallIntegerField
  • mslug - SlugField
  • mintsmall - SmallIntegerField
  • mtext - TextField
  • mtime - TimeField
  • muuid - UUIDField
  • model - basic django model
  • mforeign - ForeignKey
  • mmany - ManyToManyField
  • mone - OneToOneField

Templates

  • autoescape - auto escape html template syntax
  • block - block template syntax
  • iblock - inline block syntax
  • comment - comment template syntax
  • csrf - csrf_token template syntax
  • cycle - basic cycle template syntax
  • debug - debug template syntax wrapped in pre tags
  • extends - extends template syntax
  • filter - filter template syntax
  • firstof - firstof template syntax
  • forloop - forloop template syntax
  • if - if template syntax
  • elif - elif partial syntax
  • else - else partial syntax
  • changed - ifchanged template syntax
  • equal - ifequal template syntax
  • notequal - ifnotequal template syntax
  • include - include template syntax
  • load - load template syntax
  • lorem - lorem template syntax
  • { - inline tags
  • tag - inline tags
  • now - now template syntax
  • time - alias to now template syntax
  • blocktrans - blocktrans template syntax
  • regroup - regroup template syntax
  • spaceless - spaceless template syntax
  • ssi - ssi template syntax
  • var - alias to { variable template syntax ({{ var_name }})
  • url - url template syntax
  • url_as - url as template syntax
  • verbatim - verbatim template syntax
  • widthratio - widthration template syntax
  • with - with template syntax

Commands

Whilst there is currently no commands in the project I have created a loose roadmap of commands I would like to encorperate into this package.

Aims

Comprehensive set of django snippets and commands with the aim of making sublime an even more powerful django development tool.