0% found this document useful (0 votes)
84 views1 page

Django095 Cheat Sheet PDF

This document provides a cheat sheet for Django templates and filters. It includes a legend explaining field types and options in Django along with many built-in template tags and filters available for templates. The cheat sheet serves as a quick reference guide for common elements in Django.

Uploaded by

gag_tti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views1 page

Django095 Cheat Sheet PDF

This document provides a cheat sheet for Django templates and filters. It includes a legend explaining field types and options in Django along with many built-in template tags and filters available for templates. The cheat sheet serves as a quick reference guide for common elements in Django.

Uploaded by

gag_tti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

IS BUILT-IN TEMPLATE FILTERS

SU
E add phone2numeric
3
DJANGO CHEAT SHEET addslashes pluralize y,ies
version 0.95 capfirst pprint
center random
cut arg removetags tags_to_remove
FIELD TYPES FIELD OPTIONS BUILT-IN TEMPLATE TAGS
date format_string rjust field_size
AutoField null block default default_value slice
BooleanField blank comment default_if_none default_value slugify
CharField choices cycle row1,row2,row3 dictsort list_of_dicts stringformat
maxlength
core debug dictsortreversed list_of_dicts striptags
CommaSeparatedIntegerField
maxlength db_column extends template_name divisibleby divisor time

DateField db_index filter filter |filter escape timesince original_date


auto_now
auto_now_add default firstof var1 var2 var3 filesizeformat timeuntil original_date

DateTimeField editable for ... in ... first title


auto_now help_text if fix_ampersands truncatewords truncate_after
auto_now_add
primary_key ifchanged floatformat decimal_places unordered_list
EmailField
FileField radio_admin ifequal var1 var2 get_digit which_digit upper
upload_to unique ifnotequal var1 var2 join urlencode
FilePathField unique_for_date field_name include template_name length urlize
path
match unique_for_month field_name load library1 library2 length_is expected_length urlizetrunc truncate_at
recursive
unique_for_year field_name now format_string linebreaks wordcount
FloatField
max_digits validator_list regroup linebreaksbr wordwrap wrap_at
decimal_places
verbose_name spaceless linenumbers yesno yes,no,maybe
ImageField
upload_to ssi filename parsed ljust field_size

IntegerField templatetag lower

IPAddressField ADMIN CLASS OPTIONS widthratio make_list

NullBooleanField
date_hierarchy
PhoneNumberField
PositiveIntegerField
fields META CLASS OPTIONS
fields
PositiveSmallIntegerField classes db_table ordering verbose_name
description
SlugField get_latest_by permissions verbose_name_plural
maxlength js
prepopulate_from order_with_respect_to unique_together
list_display
SmallIntegerField
list_display_links
TextField
list_filter
TimeField
auto_now list_per_page LEGEND
auto_now_add
list_select_related
URLField ordering boolean string Also {# #} in development version In development version only.
verify_exists dictionary tuple/list See http://www.djangoproject.com/ See http://docs.python.org/lib/
save_as
USStateField integer float documentation/templates/#now typesseq-strings.html.
save_on_top time/date
XMLField Copyright 2007 Mercurytide Ltd. Released under the Creative Commons Attribution-Share Alike 2.5 Licence.
schema_path search_fields

You might also like