Book Image

Django 1.0 Template Development

Book Image

Django 1.0 Template Development

Overview of this book

Table of Contents (17 chapters)
Django 1.0 Template Development
Credits
About the Author
About the Reviewers
Preface
Index

Chapter 5. Loading and Inheriting Templates

In order to use our templates, Django needs to know how we want to load them from the filesystem and where the template files can be found. In the first chapter we briefly looked at how this worked in order to get some examples working. So now let's take a closer look at how the system works.

In this chapter we will:

  • Explore the configuration options to set up the template system

  • Learn the different methods for loading templates

  • Create templates for error handling

  • Extend templates using inheritance

  • Create parent and child templates

  • Create a strategy for setting up templates in your projects

  • Work with template includes