or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

The Definitive Guide to Django: Web Development Done Right (Expert's Voice in Web Development) [Paperback]

Jacob Kaplan-Moss , Adrian Holovaty
4.2 out of 5 stars  See all reviews (24 customer reviews)

List Price: $44.99
Price: $35.73 & FREE Shipping. Details
You Save: $9.26 (21%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Temporarily out of stock.
Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.
Ships from and sold by Amazon.com. Gift-wrap available.
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Paperback $35.73  
Unknown Binding --  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now
There is a newer edition of this item:
The Definitive Guide to Django: Web Development Done Right The Definitive Guide to Django: Web Development Done Right 4.0 out of 5 stars (14)
$31.10
In Stock.

Book Description

December 10, 2007 1590597257 978-1590597255 1

Django, the Python–based equivalent to the Ruby on Rails web development framework, is hottest topics in web development. In The Definitive Guide to Django: Web Development Done Right, Adrian Holovaty, one of Django’s creators, and Django lead developer Jacob Kaplan–Moss show you how they use this framework to create award–winning web sites. Over the course of three parts, they guide you through the creation of a web application reminiscent of chicagocrime.org.

The first part of the book introduces Django fundamentals like installation and configuration. You’ll learn about creating the components that power a Django-driven web site. The second part delves into the more sophisticated features of Django, like outputting non–HTML content (such as RSS feeds and PDFs), plus caching and user management. The third part serves as a detailed reference to Django’s many configuration options and commands. The book even includes seven appendices for looking up configurations options and commands. In all, this book provides the ultimate tutorial and reference to the popular Django framework.

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 appendices 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!


Frequently Bought Together

The Definitive Guide to Django: Web Development Done Right (Expert's Voice in Web Development) + Python Web Development with Django
Price for both: $64.05

One of these items ships sooner than the other.

Buy the selected items together
  • Python Web Development with Django $28.32


Editorial Reviews

About the Author

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.

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.

Product Details

  • Paperback: 447 pages
  • Publisher: Apress; 1 edition (December 10, 2007)
  • Language: English
  • ISBN-10: 1590597257
  • ISBN-13: 978-1590597255
  • Product Dimensions: 7.3 x 0.9 x 9.1 inches
  • Shipping Weight: 1.7 pounds (View shipping rates and policies)
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (24 customer reviews)
  • Amazon Best Sellers Rank: #837,390 in Books (See Top 100 in Books)

Customer Reviews

This book basically covers all the parts of Django, and will give you a good overview . Iqbal Abdullah  |  3 reviewers made a similar statement
This book is without doubt essential reading for getting down with Django. Jason A. Salas  |  1 reviewer made a similar statement
I highly recommend this book to Django beginners and experts alike. C. Young  |  1 reviewer made a similar statement
Most Helpful Customer Reviews
44 of 45 people found the following review helpful
3.0 out of 5 stars A solid introduction, lacking in examples February 22, 2008
Format:Paperback
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.
Comment | 
Was this review helpful to you?
74 of 98 people found the following review helpful
3.0 out of 5 stars Another Definitive Flop from Apress January 29, 2008
Format:Paperback
I buy books like these because I don't like reading documentation on a computer screen where I can't dog-ear or highlight anything, but after several bad experiences I'll probably avoid these black and yellow striped titles the same way I avoid black and yellow striped insects in the future. O'Reilly books are frequently hit-or-miss affairs, but everything I've seen come out of Apress looks like it was typeset by a 12 year old and simply isn't worth the money. It seems as though anyone who's ever written a single line of code and given it away for free can get a publishing deal these days.

Forgetting for a moment the various reasons why Django itself fails to live up to its own "perfectionist" hype, this book is just not very good. The first couple of chapters do a decent job covering introductory topics, but it quickly becomes apparent that the authors were in a big hurry to finish the rest of it as quickly as possible. There's even a "guest author" brought in at one point for no apparent reason, and his chapter is one of the worst. Those few examples that are given in latter, more advanced, sections are nothing but code that is so full of typos it never should have made it to publication. This is why developers are seldom allowed to pen their own public documentation whether they fetch coffee at a podunk newspaper or not--you spend enough time staring at your own code that you lose all sense of perspective and can no longer approach it as a newcomer would. You know what works best for you and your rapidly balding twenty-nothing IRC clique, and you figure that's good enough for everyone else. It ain't.

Another problem with letting the creators write their own "definitive" books is the way they tend to glance over the framework's shortcomings. The chapter on session management fails to mention the fact that Django expects YOU to clean up stale session data yourself, and the one on deployment makes little mention of the fact that there's not really any good way to get Django running smoothly without root access to the server--something a lot of people do not have--and they actually expect their users to run TWO servers--one for Django and one for everything else, like image files. There are ways around this, but why not put this kind of information right at the front of the book the way most others do so people can make an informed decision as to whether or not they should bother with your product right off the bat? Apache configuration is, according to them, "beyond the scope of this book." A quick Google search showed that any and all bugs related to this matter are immediately closed and marked "will not fix" by Django maintainers. It would seem that arrogance is the one feature of Rails they understood well enough to mimic correctly.

Even if you hate online books, you should stick to the free version. They at least implemented a comments system that will let other people point out where all the various typos are before you get stuck trying to figure out why this perfectionist's code isn't running very perfectly.
Was this review helpful to you?
6 of 6 people found the following review helpful
3.0 out of 5 stars Weak but not Bad June 16, 2009
Format:Paperback
I've been coding in Python for a profession since 1995 and have over the years developed several web frameworks. They could never compete with Django, Pylons, Rails, Nitrogen, etc, but since they were my own I always found it easier to use them. Now, just recently, I got several important web applications to build. The first one was a casino. So I thought it's time try something new and use one of the big frameworks. The casino was going to be a rewrite of a python casino I developed for Caesars in 1995. So I had to choose one of the python frameworks. I've already done some work in TurboGears (and Zope is for other things...) so that left me Django and Pylons. I bought The Definitive Guide to Pylons (Expert's Voice in Web Development) and The Definitive Guide to Django: Web Development Done Right. I read both from cover to cover twice over but I knew from the first few chapters that Pylons and Gardner had won. Why? The Pylons book really gave me something. I came away from it full of enthusiasm to program in Pylons!

"The Definitive Guide to Django" is a weak but not bad book. On the Django frame work itself it adds little to what you can get from reading the web site documentation. The examples don't really develop typical web development problems: DB schema changes and migration, Complex DB interaction, Site security, (How do you add data or subclass Djangos user ?), Ajax, testing, and releasing, interfacing to payment systems, etc.
Chapter 14 - "Other Contributed Frameworks" was nice, but you don't buy a book for just one chapter, or do you ? So if you want to have the Django web site documentation in a book The Definitive Guide to Django: Web Development Done Right is for you, otherwise it offers nothing much more.

But what ever you do, DON'T make the mistake of buying Pro Django (Expert's Voice in Web Development). You see, I didn't want to condemn Django on just the reading of one book, so I went out and bought "Pro Django" which is unreadable. In fact whenever we need a laugh we read sections of this SCIgen masterpiece out load in the office!
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Easy to understand as a newcomer
After spending less than a month learning Python, The Definitive Guide to Django is a remarkably easy read. Read more
Published 2 months ago by Brett Cassette
4.0 out of 5 stars Great Book
Great book, the Django version 1.0 has been released yet this book still use the old one, so some samples didn't work. Read more
Published on May 14, 2009 by Suprie
5.0 out of 5 stars Great book if you already know python
This is a great book if you are completely new to web development but already know your way around python.
Published on April 21, 2009 by Jose Fernandez de Castro
5.0 out of 5 stars Learn Django
I have spent the last year trying to find a platform to work on. The last two places I worked had two different platforms that I did not want to use (ColdFusion & Java), for... Read more
Published on February 15, 2009 by J. Gartin
1.0 out of 5 stars Old.
My problem with this book is that the author has tarnished his integrity with me in that he was, as the head of the development of the Django software project, cognizant of the... Read more
Published on February 10, 2009 by William Totman
5.0 out of 5 stars fantastic!
They don't get much better than this. The book was simple enough for me to read and understand the entire thing, without having to actually even create the lessons along with the... Read more
Published on January 7, 2009 by D. Pontillo
4.0 out of 5 stars A good, but dated book
I bought The Definitive Guide to Django: Web Development Done Right due to a course at my university. Read more
Published on November 1, 2008 by Mathias Hellevang
3.0 out of 5 stars Outdated
The book gives you a really nice overview of how the framework works. It's really an easy-reading book, and it also has really nice examples that shows exactly what you need to... Read more
Published on October 5, 2008 by Felipe S. S. Silva
4.0 out of 5 stars Excellant start to a great framework
A great started for an an excellent MVC. I would recommend this book for anyone wanting to quickly assemble a website. If anything it's the python version of Ruby on Rails. Read more
Published on August 4, 2008 by Jesse G. Lands
5.0 out of 5 stars Documentation is What Makes Django
I've dabbled with what I consider to be all the major web frameworks: TurboGears, Pylons, Rails, and Django. Read more
Published on June 11, 2008 by Micah Elliott
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

Topic From this Discussion
How popular is Django ?
Googling "site:code.google.com django" turns up an order of magnitude more results than searches for pylons or zope. That's one objective indicator of Django's popularity relative to Google's public-facing developer projects. Obviously, Google is just one company -- but they shape a lot... Read more
Feb 14, 2008 by R. Peake |  See all 3 posts
Have something you'd like to share about this product?
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Search Customer Discussions
Search all Amazon discussions


So You'd Like to...


Create a guide


Look for Similar Items by Category