Most Useful 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.
-
url
- used to output the path to the view mapping to
urlname
as defined in the URLConf file. - with - caches a variable for reuse.