Å·±¦ÓéÀÖ

Jump to ratings and reviews
Rate this book

The Definitive Guide to Django: Web Development Done Right

Rate this book

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 www.chicagocrime.org.

Django: Web Development Done Right 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 is this book for?

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

536 pages, Paperback

First published December 1, 2007

24 people are currently reading
150 people want to read

About the author

Adrian Holovaty

7Ìýbooks4Ìýfollowers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
52 (24%)
4 stars
100 (46%)
3 stars
48 (22%)
2 stars
13 (6%)
1 star
3 (1%)
Displaying 1 - 17 of 17 reviews
Profile Image for James Stewart.
38 reviews6 followers
February 22, 2008
Django is a framework I’ve long (in web years) held in some esteem, despite never having used it before the past few weeks. The framework’s creators� many well reasoned contributions on all manner of debates about the web suggested a thoughtful approach, and the range of high quality sites powered by Django has kept growing, with the recent launch of EveryBlock being a prime example of its capabilities. So I was delighted to receive a copy of The Definitive Guide to django: Web Development Done Right for review.

Authored by two of the creators of Django: Adrian Holovaty and Jacob Kaplan-Moss, the book is carefully structured, initially placing django in context by exploring various approaches to web development, and then stepping through initial project creation, templates, models, url configuration, django’s famed admin interface, and so on. After eight chapters it changes tack and switches from basic tutorial to more in-depth exploration of areas like the ORM, session handling, caching and deployment. Several appendices provide supplementary material.

The first few chapters do a good job of laying out the foci of the framework’s architecture and it’s Model Template View (MTV) approach. Its pace is measured and while I wonder if it might be a little too much too soon for those totally new to full stack web frameworks, it would work well for those coming from a background building web apps with PHP, Java, or for those of us who are used to working with Rails. There are new techniques to learn and I found the book particularly useful for grasping the deeply pythonic approach, favouring flexibility over convention.

A clear example of that comes in the use of Context objects for passing values between Views and Templates. The authors initially show us the most verbose and rudimentary way to do it and gradually develop that to show how they’ve provided for various common cases. By going through those steps there’s a good chance the reader will be well equipped to work out ways to simplify their own workflow and/or create new subclasses to promote reuse in their code.

Where the book is lacking is in the examples. The introductory material, and much of the reference content is excellent, but as a newcomer to the framework I felt a little lost in how I should structure my code and how different components relate; it’s clear how models relate to the database, but how do I pass them around when building associations?

I recognise that django deliberately avoids the strong conventions of the Rails community (though even there you frequently find newcomers unsure where in the directory structure to place certain components) and there’s no need for lengthy tutorials on building a shop or how a magazine cms could work, but when I come to a book like this I’m looking for a guide to best practices at the project architecture level, not just the component level, and I was sorry not to find it. The authors clearly have a lot of experience of structuring django sites of all shapes and sizes and it would be good to learn more about how they keep those sites organised.

That said, this is a solid introduction to django for web developers; a solid contribution in a so-far underserved market and it’s likely to come in handy for a number of people. Just be prepared to supplement it with a fair amount of time in search engines working out good strategies for connecting the pieces.

Disclaimer: I was sent a copy of this book for review by the publisher.
Profile Image for Micah Elliott.
8 reviews4 followers
January 6, 2009
I've dabbled with what I consider to be all the major web frameworks: TurboGears, Pylons, Rails, and Django. Religion and other biases aside, what really made me finally settle on Django was the documentation (though community/all-in-one-ness/robustness aspects are also nice factors). What's notable out about Django documentation? Precision, attention to detail, comprehensiveness, and general emphasis on polish.

To many people, a book is what makes a new technology both accessible and credible. A couple years ago when I thought TurboGears was the framework I wanted, I got the book, and it was crap. Subsequently, other things about the framework started to feel lacking. Then with Pylons, there is no book, which reflects the constant state of flux of the component mix. Cool framework, admirable ideals, but no book. Now with Django, there is *the* book, and it's beautifully done, and you discover that the framework is, too.

I see this book as a true community resource. Its examples directly extend *the* tutorial. Being available in its up-to-date entirety as a living document, anyone can simply answer a question by consulting a link to a book section. I applaud the authors opening this book up to be accessible to everyone, both in ease of reading, and in being free for download. It is always reassuring to find a book about a tool being written by the authors of a tool, and that should contribute to making it the canonical Django resource.
Profile Image for Ian.
55 reviews22 followers
December 1, 2008
I needed to come up to speed on Django for a new job and I was able to read through this book and get a good sense of the framework. The book not only explains the mechanics but also the philosophy that guides the design. As an experienced developer who is new to Django it was at the perfect level for me. I wouldn't recommend this book to a beginner developer - you should have experience with both Python and web development before picking it up.
Profile Image for Shelley Skinner.
3 reviews2 followers
November 12, 2014
Having python and C++ experience, I was able to learn and get several Django examples working with this book, but not without the help of googling the internet and help from colleagues to get started.
The reason is that there are some details that have changed in later versions of django.
Once I got over the initial hurdles, I got a great deal out of the book and got many
of the examples to work.
Profile Image for Emily.
44 reviews12 followers
October 16, 2009
This book gives you that same transcendant feeling you get when you first start to understand Python. I found myself audibly saying "Aw yeah!" several times while reading it. Plus, it's very accessible: the gentle learning curve allows even an MVC newb like me to actually get what's going on. I'll never have to use PHP again!
914 reviews4 followers
August 31, 2014
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 confident it will shave some time off the next time I am called to get a python website up and running quickly.
Profile Image for Max Nova.
421 reviews226 followers
Read
May 10, 2015
I actually read the free online version of this book (in which all of the image links were broken - a fate that the print book surely does not share). Although I've been programming in Django for a few years now, this book was a great quick read to learn some of the philosophy behind Django and a few useful features I had been too afraid to use
Profile Image for Troy.
5 reviews4 followers
December 16, 2012
Before you buy this book you may want to start by reading the django documentation online (). If your new to Django or just need a solid reference then i recommend this is the book for you.
Profile Image for mcburton.
77 reviews8 followers
June 2, 2008
Well written & and a great companion to the excellent Django project documentation. But I fear this will soon be dated.
Profile Image for Dulguun.
30 reviews3 followers
June 25, 2010
Comprehensive guide for Django beginners/intermediates, and could be used as concise reference for experienced ones.
Profile Image for Kenny.
10 reviews3 followers
February 13, 2010
This book guided me trough my way of learning to use and appreciate Django. Very good book.
Profile Image for Gian Luca.
9 reviews
January 20, 2012
Lo stile è essenziale e sembra ben fatto, ma ho ricevuto molte segnalazioni su errori del codice di esempio...
Profile Image for Michael.
12 reviews
January 1, 2016
Extremely helpful for someone learning the Django web development framework. But also out of date by 6 years, which is an eternity in the computer software genre.
Displaying 1 - 17 of 17 reviews

Can't find what you're looking for?

Get help and learn more about the design.