|
| The Definitive Guide to Django: Web Development Done Right | 
enlarge | Authors: Adrian Holovaty, Jacob Kaplan-moss Publisher: Apress Category: Book
List Price: $44.99 Buy New: $24.63 You Save: $20.36 (45%)
New (32) Used (17) from $22.38
Avg. Customer Rating: 17 reviews Sales Rank: 60930
Media: Paperback Number Of Items: 1 Pages: 447 Shipping Weight (lbs): 1.7 Dimensions (in): 9.1 x 7 x 1
ISBN: 1590597257 Dewey Decimal Number: 006.76 EAN: 9781590597255 ASIN: 1590597257
Publication Date: December 6, 2007 Availability: Usually ships in 1-2 business days
|
| Also Available In:
|
| Similar Items:
|
| Editorial Reviews:
Product Description
Django, the Python–based equivalent to the Ruby on Rails web development framework, is presently one of the hottest topics in web development today. 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 appendixes for looking up configurations options and commands. In all, this book provides the ultimate tutorial and reference to the popular Django framework.
|
| Customer Reviews: Read 12 more reviews...
Another Definitive Flop from Apress January 29, 2008 50 out of 59 found this review helpful
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.
Django makes websites fun again. December 21, 2007 14 out of 17 found this review helpful
A good web site framework makes you more productive, and if you're a geek (admit it, you wouldn't be reading this if you weren't one), more productive == more fun. A good idea without good documentation is nothing more than a hobby project. Django is, most emphatically, *not* a hobby project.
Adrian and Jacob's writing is technically accurate while remaining clean and readable. They do far more than simply regurgitate the online docs (which they were major contributors to), they get into the 'why.' They are of that rare breed that can first write the code (and do it well) and then write the docs, and do that well also.
One of the criteria I judge technical books on is their examples -- good examples don't simply repeat in code what was given in the previous paragraph, they expand and illuminate the concepts and, at their best, they cause the reader to have small (or large) epiphanies about the subject at hand. In particular, "Chapter 10: Extending the Template Engine" and "Chapter 15: Middleware" caused me to rethink how to handle several knotty problems. The copious examples in the book expertly walk the line between being too simple to be instructive and too complex to digest. Although this is not intended as a book for Python beginners, beginners can learn an lot about good Python programming from it.
A solid introduction, lacking in examples February 22, 2008 13 out of 13 found this review helpful
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.
Excellent guide to Django development December 29, 2007 12 out of 16 found this review helpful
I've been using Python since the late 90s and have been using Django since it was first released to the public. I thought I knew how everything fit together in Django, but I was wrong. This book filled in the gaps and gave me a deeper understanding of the Django framework itself as well as the philosophy behind it.
The writing style is great and the examples walk you through the framework in a way that gives you a good understanding of how Django works. I wish I would have had this book when I first started looking at Django.
I highly recommend this book to Django beginners and experts alike.
Sufficient, but written on drool-proof paper January 31, 2008 12 out of 13 found this review helpful
This book is a decent survey of Django's capabilities as well as an introduction to MVC-based web dev. Unfortunately it suffers from a very simple problem: too much explanation getting in the way of information. For example: no one cares how "pure" the MVC-ness of Django is. Another example: excellent documentation on regular expressions already exists at the Python module index. I suspect that the authors mistakenly believe this extra information is "helpful" in some sense, but it isn't. It gets in the way!
In short: sufficient to the need, but the authors have SEVERELY compromised its usability with excessive padding and pointless discussion. Unfortunately this seems to be common practice in the web world.
|
|
| Powered by Associate-O-Matic
| |