The Definitive Guide to Django: Web Development Done Right

Front Cover
Apress, Jul 8, 2009 - Computers - 536 pages
17 Reviews

This latest edition of The Definitive Guide to Django is updated for Django 1.1, and, with the forward–compatibility guarantee that Django now provides, should serve as the ultimate tutorial and reference for this popular framework for years to come.

Django, the Python–based equivalent to Ruby’s Rails web development framework, is one of the hottest topics in web development today. Lead developer Jacob Kaplan–Moss and Django creator Adrian Holovaty show you how they use this framework to create award–winning web sites by guiding you through the creation of a web application reminiscent of ChicagoCrime.org.

The Definitive Guide to Django is broken into three parts, with the first introducing Django fundamentals such as installation and configuration, and creating the components that together power a Django–driven web site. The second part delves into the more sophisticated features of Django, including outputting non–HTML content such as RSS feeds and PDFs, caching, and user management. The appendixes serve as a detailed reference to Django’s many configuration options and commands.

What you’ll learn The first half of this book explains in depth how to build web applications using Django including the basics of dynamic web pages, the Django templating system interacting with databases, and web forms. The second half of this book discusses higher-level concepts such as caching, security, and how to deploy Django. The appendixes form a reference for the commands and configurations available in Django. Who this book is for

Anyone who wants to use the powerful Django framework to build dynamic web sites quickly and easily.

Table of Contents Introduction to Django Getting Started Views and URLconfs Templates Models The Django Admin Site Forms Advanced Views and URLconfs Advanced Templates Advanced Models Generic Views Deploying Django Generating Non-HTML Content Sessions, Users, and Registration Caching django.contrib Middleware Integrating with Legacy Databases and Applications Internationalization Security
 

What people are saying - Write a review

User ratings

5 stars
1
4 stars
15
3 stars
1
2 stars
0
1 star
0

Review: The Definitive Guide to Django: Web Development Done Right

User Review  - Goodreads

I felt like I understand django quite a bit more now, and got some general tips for python web programming. I don't actually use django very much at the moment, so I can't fully assess it, but I'm ... Read full review

Review: The Definitive Guide to Django: Web Development Done Right

User Review  - Brian Palmer - Goodreads

I felt like I understand django quite a bit more now, and got some general tips for python web programming. I don't actually use django very much at the moment, so I can't fully assess it, but I'm ... Read full review

All 9 reviews »

Contents

Introduction to Django
3
Getting Started
11
Views and UrLconfs
21
templates
39
Models
71
the Django admin Site
95
Forms
119
advanced Views and UrLconfs
145
djangocontrib
291
Middleware
309
Integrating with Legacy Databases and applications
317
Internationalization
323
Security
341
Model definition reference
353
database Api Reference
369
Generic View Reference
395

advanced templates
167
advanced Models
191
Generic Views
203
Deploying Django
213
Generating NonhtML Content
237
Sessions Users and registration
255
Caching
277
Settings
413
Builtin Template Tags and Filters
429
The djangoadmin Utility
455
Request and Response Objects
469
Index
479
Copyright

Common terms and phrases

About the author (2009)

Adrian Holovaty, a web developer and journalist, is one of the creators and core developers of Django. He works at WashingtonPost.com, where he builds database web applications and does "journalism as computer programming." Previously, he was lead developer for World Online in Lawrence, Kansas, where Django was created. When not working on Django improvements, Adrian hacks on side projects for the public good, such as ChicagoCrime.org, which won the 2005 Batten Award for Innovations in Journalism. He lives in Chicago and maintains a weblog at www.Holovaty.com.

Jacob Kaplan-Moss is one of the lead developers of Django. At his day job, he's the lead developer for the Lawrence Journal-World, a locally owned newspaper in Lawrence, Kansas, where Django was developed. At the Journal-World, Jacob hacks on a number of sites including lawrence.com, LJWorld.com, and KUsports.com, and he is continually embarrassed by the multitude of media awards those sites win. In his spare time—what little of it there is—he fancies himself a chef.

Bibliographic information