Packt Publishing Community, Experience, Distilled

Django 1.0 Template Development

HomeBooksSupportFreeAuthorsAward
BROWSE SEARCH SHOPPING CART CHECKOUT

 
SEARCH

Search our Site

 
Django 1.0 Template Development
 
Django 1.0 Template Development A practical guide to Django template development with custom tags, filters, multiple templates, caching, and more
 
  • Dive into Django's template system and build your own template
  • Learn to use built-in tags and filters in Django 1.0
  • Practical tips for project setup and template structure
  • Use template techniques to improve your application's performance
 
Available Now
Cover price   $39.99
Packt Special Offer   $35.99 save 10%
Multi-buy Discount   $32.79 save 18% order two or more items
Change Currency   what is this?
Free shipping! US, UK, Europe & selected Asian countries
Where else can I buy this book?

Also available from:
READY TO BUY?

You can change your mind later
Returns Information
READY TO BUY?
  • Buy the book and eBook, save 85% on the eBook
  • Buy 2 books, get 18% off
Available Now

eBook Version
READY TO BUY?



eBooks are non returnable and non refundable.
Packt eBook Licence agreement

Django 1.0 Template Development - PDF eBook
Adobe PDF eBook
Django 1.0 Template Development [eBook]
File size: 4.97 MB
Packt eBooks are a low cost and immediate companion or alternative to print books. Packt eBooks can be printed. Copying is disabled. They are password protected with your email address.
Packt eBook User Guide

Buy two or more eBooks and get 35% off

eBook only
$31.99
$23.99
Save 25% off eBook
Book and eBook bundle $63.98
$40.79
 
Save 10% off Book & 85% off eBook

Code download
Request a Review Copy
Send us feedback on this title
Ask a question about this title
Sample Chapter 6 Serving Multiple Templates [1.0 MB]
Table of Contents
Book Details
Language English
Paperback 252 pages [191mm x 235mm]
Release date December 2008
ISBN 1847195709
ISBN 13 978-1-847195-70-8
Author(s) Scott Newman
Topics and Technologies Web Development

Discount Offer

+ Buy this book with Learning Website Development with Django and get 25% discount on both. Just add both books to your cart and the discount will be applied.  

A comprehensive, practical exploration of the usage and customization of Django's template system, including tutorials on pagination, caching, and internationalization. 


In Detail
Django is a high-level Python web application framework designed to support the rapid development of dynamic websites, web applications, and web services. Getting the most out of its template system allows programmers and designers to easily and efficiently output their content in a flexible, extendable, and maintainable manner.

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.

Read the full Table of Contents for Django 1.0 Template Development


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

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 internationalization to automatically serve your site templates in multiple languages based on the user's preferences.

Chapter 10 shows you how to customize 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 optimize the speed and performance of your project.
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.

Author(s)
Scott Newman

Scott Newman has been developing commercial websites since 1997. Since then, he has professionally developed web applications in C, PERL, ColdFusion, ASP, PHP, and Python. He has also been a Windows network administrator and desktop application developer, but always gravitates back to web development. Scott holds a Network+ certification and is a dotMobi Certified Mobile Web Developer.

In recent years, Scott worked as the system development manager for a major media company developing CMS and mobile applications in Django. He is currently the consulting director for the Big Nerd Ranch in Atlanta, GA.


   




© Packt Publishing Ltd 2009

RSS