Built-in tag reference
- | - | - |
---|---|---|
autoescape | block | comment |
csrf_token | cycle | debug |
extends | filter | firstof |
for | for ...empty | if |
ifequal and ifnotequal | ifchanged | include |
load | lorem | now |
regroup | spaceless | templatetag |
url | verbatim | widthratio |
with | - | - |
autoescape
{% autoescape on %}
{{ body }}
{% endautoescape %}
block
자식 템플릿에 덮어쓸 수 있는 블록을 정의합니다. Template inheritance 를 참고하세요.
comment
{% commnet %}
{% endcomment %}
사이의 모든 것을 무시합니다. [추가]
<p>Rendered text with {{ pub_date|date:"c" }}</p>
{% comment "Optional note" %}
<p>Commented out text with {{ create_date|date:"c" }}</p>
{% endcomment %}
comment 태그는 중첩할 수 없습니다.
csrf_token
이 태그는 CSRF 보호를 위해 사용합니다. Cross Site Request Forgeries 에 자세히 나와있습니다.