Link

이전 단계 다음 단계

django template tags and filters

Table of contents

  1. template tags
  2. filters

template tags

doc

autoescape
block

comment

csrf_token
cycle

debug

extends

filter
firstof

for
for ... empty
if

Boolean operators
    == operator
    != operator
    < operator
    > operator
    <= operator
    >= operator
    in operator
    not in operator
    is operator
    is not operator
    
Filters

ifequal and ifnotequal
ifchanged
include
load
lorem
now
regroup
resetcycle
spaceless
templatetag
url
verbatim
widthratio
with

filters

doc

add
addslashes
capfirst
center
cut
date
default
default_if_none
dictsort
dictsortreversed
divisibleby
escape
escapejs
filesizeformat
first
floatformat
force_escape
get_digit
iriencode
join
json_script
last
length
length_is
linebreaks
linebreaksbr
linenumbers
ljust
lower
make_list
phone2numeric
pluralize
pprint
random
rjust
safe
safeseq
slice
slugify
stringformat
striptags
time
timesince
timeuntil
title
truncatechars
truncatechars_html
truncatewords
truncatewords_html
unordered_list
upper
urlencode
urlize
urlizetrunc
wordcount
wordwrap
yesno

i18n
l10n
tz

static
static
get_static_prefix
get_media_prefix

이전 단계 다음 단계