Appendix E. Built-in Template Tags and Filters
Chapter 3, Templates, lists a number of the most useful built-in template tags and filters. However, Django ships with many more built-in tags and filters. This appendix provides a summary of all template tags and filters in Django. For more detailed information and use cases, see the Django Project website at https://docs.djangoproject.com/en/1.8/ref/templates/builtins/.
Built-in tags
autoescape
Controls the current auto-escaping behavior. This tag takes either on
or off
as an argument and that determines whether auto-escaping is in effect inside the block. The block is closed with an endautoescape
ending tag.
When auto-escaping is in effect, all variable content has HTML escaping applied to it before ...
Get Mastering Django: Core now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.