- ホーム
- > 洋書
- > 英文書
- > Computer / General
Full Description
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. 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.
Contents
Chapter 1 gives you an introduction to the Django template system and provides an overview of how it works. Chapter 2 explores how URL configuration routes your requests to views and generic views. You will understand how to use generic views to streamline your project's development. Chapter 3 explains how data from your views is exposed to the template system via the template context. Chapter 4 reviews all of Django's built-in tags and filters, each with examples and usage notes. Chapter 5 uses extension and inheritance to create a modular skeleton for your project's templates. Chapter 6 teaches you how to serve multiple versions of your templates in a single Django project. You will create mobile and traditional templates and learn how to serve them from the same views. Chapter 7 teaches you how to use Django's pagination libraries to split the output of your applications into pages and provide navigation between them. Chapter 8 explains how to extend the template system by writing your own template tags and filters. Chapter 9 uses internationalisation to automatically serve your site templates in multiple languages based on the user's preferences. Chapter 10 shows you how to customise the look and feel of the automatic admin application by editing some templates and creating custom CSS rules. Chapter 11 teaches you to use the cache framework to optimise the speed and performance of your project.