Django 1.0 Template Development

A practical guide to Django template development with custom tags, filters, multiple templates, caching, and more

Django 1.0 Template Development

Scott Newman

A practical guide to Django template development with custom tags, filters, multiple templates, caching, and more
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $23.99
Save 58%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt subscription?
  • Unlimited access to all Packt’s 6,000+ eBooks and Videos
  • 100+ new titles a month, learning paths, assessments & code files
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$39.99
$29.99 p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Django 1.0 Template Development Book Cover
Django 1.0 Template Development
$ 23.99
$ 10.00
Django 1.1 Testing and Debugging Book Cover
Django 1.1 Testing and Debugging
$ 29.99
$ 10.00
Buy 2 for $20.00
Save $33.98
Add to Cart

Book Details

ISBN 139781847195708
Paperback272 pages

Book Description

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.

Table of Contents

Chapter 4: Using the Built-In Tags and Filters

What You Will Learn

  • 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.

Authors

Table of Contents

Chapter 4: Using the Built-In Tags and Filters

Book Details

ISBN 139781847195708
Paperback272 pages
Read More

Read More Reviews

Recommended for You

Django 1.1 Testing and Debugging Book Cover
Django 1.1 Testing and Debugging
$ 29.99
$ 10.00
Django 1.0 Website Development Book Cover
Django 1.0 Website Development
$ 23.99
$ 10.00
WordPress 3 Plugin Development Essentials Book Cover
WordPress 3 Plugin Development Essentials
$ 23.99
$ 10.00
Panda3D 1.7 Game Developer's Cookbook Book Cover
Panda3D 1.7 Game Developer's Cookbook
$ 26.99
$ 10.00
Panda3D 1.6 Game Engine Beginner's Guide Book Cover
Panda3D 1.6 Game Engine Beginner's Guide
$ 26.99
$ 10.00
HBase Administration Cookbook Book Cover
HBase Administration Cookbook
$ 29.99
$ 10.00