Template Development
This book will help you to master the Django template system. Built-in template tags and filters are explained with examples and usage notes, as well as information on building custom tags and filters to extend the system for your needs. You will learn to use inheritance to create modular templates that are easy to maintain. You will learn how to serve multiple templates from within the same Django project, with an example of how to serve different templates for a mobile version of your site without having to change any code in your views. Pagination, internationalization, caching, and customization of the automatic admin application are also covered.
Covers Django 1.0, 1st edition (December 11, 2008)
What you will learn from this book?
- Meet the Django template system and understand how it works
- Understand URL configurations, views, and generic views and streamline your project's development
- Master built-in tags and filters to use them efficiently in your project
- Split your output into manageable pieces using pagination libraries
- Extend your templates through inheritance
- Customize the look of the admin interface as you like to administer your website with ease
- Create and deploy custom tags and filters according to your needs
- Internationalize your templates to present your site in multiple languages from the same template files
- Improve your site's performance by using the cache framework
- Serve multiple sets of templates from the same project easily
Approach
This book is designed for readers who learn by doing and employs many examples and screenshots to let the reader dig in and start coding. This book isn't designed to be a reference; instead it has a practical, example-driven approach that teaches you by following along with the examples in the chapters.
When you have completed this book, you will fully understand how the template system works, how to extend it when you have specialized needs, and how to optimize the performance and usability of your content.
Who this book is written for?
This book is for web developers and template authors who want to fully understand and utilize the Django template system. The reader should have completed the introductory tutorials on the Django project's website and some experience with the framework will be very helpful. Basic knowledge of Python and HTML is assumed.
Comments
There are no comments.
Login to add comments

