Most Useful Tags
15 tags
- block delineates a block of content that can be overwritten in child templates.
- comment used to comment out code.
- csrf_token protects against cross site request forgery.
- cycle cycles through list of arguments.
- extends signals that the template extends a parent template.
- for for loop.
- for … empty display text when for loop is empty.
- if if condition.
- include used to include one template in another.
- load used to load one or more libraries of tags and filters.
-
partial
renders a template fragment defined with
partialdef. New in Django 6.0 - partialdef defines a reusable template fragment. New in Django 6.0
- querystring outputs a URL-encoded query string. New in Django 5.1
-
url
used to output the path to the view mapping to
urlnameas defined in the URLConf file. - with caches a variable for reuse.
