Beruflich Dokumente
Kultur Dokumente
default default_if_none yesno stringformat first last random length length_is join make_list value value "yes,no,none" "s" escape force_escape safe dont escape escapejs \x20 escapes iriencode IRI to URI urlencode %20 escapes add divisibleby floatformat filesizeformat get_digit pluralize date time timesince timeuntil lower upper title capfirst slugify ljust rjust center wordwrap wordcount striptags removetags truncatewords truncatewords_html
adds closing tags
ue Iss 4
GENERAL
ESCAPING
Template tags
{# one line comment #} autoescape on/off block name comment cycle "one" "two" "three" debug extends "template" filter... filter1|filter2 firstof var1 var2 "default" for... item in a_list ifelseendif boolean expression ifchanged var ifequal ifnotequal include load now regroup spaceless templatetag url widthratio
abc
python % formatting
var1 var2 var1 var2 "template" tag_library "date format" list_of_dicts by key as var openblock
NUMBERS
LISTS
with
TIME
DAY
ModelAdmin options
date_hierarchy form fieldsets fields filter_horizontal filter_vertical list_display list_display_links list_filter list_per_page
="date_field" =FormClass =[("Details", {"fields": ("name",)})] =list_of_field_names =False =False =list_of_field_names =list_of_field_names =list_of_field_names =100
MONTH
FORMATS
TEXT FORMATTING
YEAR
MISC
InlineModelAdmin options
=False =list_of_InlineClasses =list_of_field_names ={"slug": ("name",)} ={"agree": admin.VERTICAL} =list_of_fk_fields =False =False =list_of_field_names
max_length "x"
Model fields
BooleanField NullBooleanField CharField max_length TextField SlugField max_length FilePathField path match recursive max_length IntegerField PositiveIntegerField AutoField DecimalField max_digits decimal_places DateTimeField auto_now auto_now_add TimeField auto_now auto_now_add =50 ="/home/images" =r"\.jpg$" =True =100 EmailField max_length IPAddressField URLField verify_exists max_length FileField upload_to max_length storage =10 =2 ImageField upload_to max_length storage height_field width_field XMLField schema_path =False =False =False =False =75
ue Iss 4
ManyToManyField(model) ="model_set" related_name =query_kwargs limit_choices_to ="IntermediateModel" through =True symmetrical OneToOneField(model) parent_link ="field"
=True =200 ="uploads/" =100 =FileSystemStorage ="uploads/" =100 =FileSystemStorage ="field_name" ="field_name" =path_to_RelaxNG_schema
GenericForeignKey("content_type_field", "object_id_field")
FloatField SmallIntegerField PositiveSmallIntegerField CommaSeparatedIntegerField max_length =50 DateField auto_now auto_now_add =False =False
Form fields
BooleanField NullBooleanField CharField max_length min_length IntegerField max_value min_value DecimalField max_value min_value max_digits decimal_places FloatField max_value min_value DateField input_formats DateTimeField input_formats TimeField input_formats ChoiceField choices MultipleChoiceField choices =list_of_formats =list_of_formats =list_of_formats =list_of_tuples =list_of_tuples ModelChoiceField queryset empty_label cache_choices ="----" =False IPAddressField FileField ImageField FilePathField path match recursive RegexField regex max_length min_length
ModelMultipleChoiceField queryset =False cache_choices URLField max_length min_length verify_exists validator_user_agent EmailField max_length min_length
=False