Professional Documents
Culture Documents
Admoroux Djaneiro
Admoroux Djaneiro
csrf {% csrf_token %} }
cycle {% cycle %}
Non-official snippets for templates
debug {% debug %}
super {{ block.super }}
ext {% extends "" %}
extrahead {% block extrahead %}{% endblock extrahead %}
extends {% extends "" %}
extrastyle {% block extrastyle %}{% endblock extrastyle %}
filter {% filter %} {% endfilter %}
var {{ }}
firstof {% firstof %}
tag {% %}
for {% for in %} {% endfor %}
staticu {{ STATIC_URL }}
fore {% for in %} {% empty %} {% endfor %}
media {{ MEDIA_URL }}
if {% if %} {% endif %}
widthratio {% widthratio %}
Snippets for Django model fields (cont) Snippets for Django form fields (cont)
mxml models.XMLField()
Snippets for Django Models
fk models.ForeignKey()
Model Simple Model Class
m2m models.ManyToManyField()
Model_full Full Model Class(with TODOs)
o2o models.OneToOneField()
Completions
Snippets for Django form fields
null blank choices
fchar forms.CharField()
db_column db_index db_tablespace
fchoice forms.ChoiceField()
default related_name editable
fcombo forms.ComboField()
error_message help_message primary_key
fdate forms.DateField()
unique unique_togeth unique_for_dat
fdatetime forms.DateTime()
er e
fdecimal forms.DecimalField()
unique_for_month unique_for_ye verbose_name
fduration forms.DurationField()
ar
femail forms.EmailField()
verbose_name_plu validators auto_now_add
ffile forms.FileField() ral
ffilepath forms.FilePathField() auto_now required label
ffloat forms.FloatField() initial widget localized
fimg forms.ImageField() return RequestContex context_instan
fint forms.IntegerField() t ce
fmochoice forms.ModelChoiceField() se
d() 4