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

Summary


In this chapter, we edited the templates of the Django admin application to add additional content and make the color scheme match our site.

We looked at the structure of the admin templates and how we can override them by creating an admin directory under our site's templates directory. We saw how the template filesystem loader will look for the files in this directory before looking at the template files under the admin application.

We explored how to change the admin header by editing the base_site.html file with our own information. We added our own links to the admin dashboard in a format that matches the other boxes on the page.

Finally, by using some special blocks in the admin base template, we added a set of global navigation links and the new CSS rules to override the default admin stylesheet.

In the next chapter, we'll look at how to improve performance using Django's caching libraries to cache our page content.