-
Book Overview & Buying
-
Table Of Contents
Django 1.0 Template Development
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, the app_directories loader, and the eggs loader
How the filesystem and app_directories loaders are configured, how they work, and how they can be configured to work together
How 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 templates
Using block.super to append to blocks
Creating reusable site elements with inheritance and includes
Creating flexible templates by defining placeholder blocks in our parent templates
How to use the include and ssi tags
In the next chapter, we will look at serving multiple templates from a single project.
Change the font size
Change margin width
Change background colour