Chapter 8. Advanced Templates

Although most of your interactions with Django's template language will be in the role of template author, you may want to customize and extend the template engine-either to make it do something it doesn't already do, or to make your job easier in some other way.

This chapter delves deep into the guts of Django's template system. It covers what you need to know if you plan to extend the system or if you're just curious about how it works. It also covers the auto-escaping feature, a security measure you'll no doubt notice over time as you continue to use Django.

Template language review

First, let's quickly review a number of terms introduced in Chapter 3, Templates:

  • A template is a text document, or a normal Python string, ...

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.