In this chapter, we looked at how the Django template system gets configured and how template inheritance works.
Specifically, we looked at the following:
The three template loader types: the
filesystem
loader, theapp_directories
loader, and theeggs
loaderHow the
filesystem
andapp_directories
loaders are configured, how they work, and how they can be configured to work togetherHow Django calls templates for 404 and 500 errors
The order in which Django looks for templates when multiple loader types are used
The difference between including and extending templates
How template inheritance works
How to use
block
tags in templatesUsing
block.super
to append to blocksCreating reusable site elements with inheritance and includes
Creating flexible templates by defining placeholder blocks in our parent templates
How to use the
include
andssi
tags
In the next chapter, we will look at serving multiple templates from a single project.