Utility Tags
16 tags
- block delineates a block of content that can be overwritten in child templates. Most useful
- comment used to comment out code. Most useful
-
csp_nonce_attr
renders the CSP nonce attribute on
<script>and<link>tags. New in Django 6.1 - csrf_token protects against cross site request forgery. Most useful
- debug outputs debugging information.
- extends signals that the template extends a parent template. Most useful
- filter applies a pipe-delimited list of filters to the contained content.
- include used to include one template in another. Most useful
- load used to load one or more libraries of tags and filters. Most useful
- lorem outputs lorem ipsum placeholder text.
- now outputs the current date and/or time.
-
partial
renders a template fragment defined with
partialdef. New in Django 6.0 Most useful - partialdef defines a reusable template fragment. New in Django 6.0 Most useful
- querystring outputs a URL-encoded query string. New in Django 5.1 Most useful
- regroup used for outputting list of dictionaries in different orders and structures.
-
url
used to output the path to the view mapping to
urlnameas defined in the URLConf file. Most useful
