Programming Books C Java PHP Python Learn more Browse Programming Books
Python Web Development with Django and over one million other books are available for Amazon Kindle. Learn more
  • List Price: $49.99
  • Save: $20.98 (42%)
FREE Shipping on orders over $35.
Only 14 left in stock (more on the way).
Ships from and sold by
Gift-wrap available.
Python Web Development wi... has been added to your Cart
Condition: Used: Good
Comment: Fast shipping from Amazon! Qualifies for Prime Shipping and FREE standard shipping for orders over $35. Overnight, 2 day and International shipping available! Excellent Customer Service.. May not include supplements such as CD, access code or DVD.
Access codes and supplements are not guaranteed with used items.
Sell yours for a Gift Card
We'll buy it for $2.00
Learn More
Trade in now
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Python Web Development with Django Paperback – November 3, 2008

ISBN-13: 978-0132356138 ISBN-10: 0132356139 Edition: 1st

Buy New
Price: $29.01
26 New from $22.53 25 Used from $3.75
Amazon Price New from Used from
"Please retry"
"Please retry"
$22.53 $3.75
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

Frequently Bought Together

Python Web Development with Django + Core Python Applications Programming (3rd Edition) (Core Series)
Price for both: $60.45

Buy the selected items together

Hero Quick Promo
Save up to 90% on Textbooks
Rent textbooks, buy textbooks, or get up to 80% back when you sell us your books. Shop Now

Product Details

  • Paperback: 408 pages
  • Publisher: Addison-Wesley Professional; 1 edition (November 3, 2008)
  • Language: English
  • ISBN-10: 0132356139
  • ISBN-13: 978-0132356138
  • Product Dimensions: 6.9 x 0.9 x 8.9 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.4 out of 5 stars  See all reviews (22 customer reviews)
  • Amazon Best Sellers Rank: #263,054 in Books (See Top 100 in Books)

Editorial Reviews

From the Back Cover

Using the simple, robust, Python-based Django framework, you can build powerful Web solutions with remarkably few lines of code. InPython Web Development with Django®, three experienced Django and Python developers cover all the techniques, tools, and concepts you need to make the most of Django 1.0, including all the major features of the new release.


The authors teach Django through in-depth explanations, plus provide extensive sample code supported with images and line-by-line explanations. You'll discover how Django leverages Python's development speed and flexibility to help you solve a wide spectrum of Web development problems and learn Django best practices covered nowhere else. You'll build your first Django application in just minutes and deepen your real-world skills through start-to-finish application projects including

  • Simple Web log (blog)
  • Online photo gallery
  • Simple content management system
  • Ajax-powered live blogger
  • Online source code sharing/syntax highlighting tool
  • How to run your Django applications on the Google App Engine


This complete guide starts by introducing Python, Django, and Web development concepts, then dives into the Django framework, providing a deep understanding of its major components (models, views, templates), and how they come together to form complete Web applications. After a discussion of four independent working Django applications, coverage turns to advanced topics, such as caching, extending the template system, syndication, admin customization, and testing. Valuable reference appendices cover using the command-line, installing and configuring Django, development tools, exploring existing Django applications, the Google App Engine, and how to get more involved with the Django community.



Introduction 1


Part I: Getting Started

Chapter 1: Practical Python for Django 7

Chapter 2: Django for the Impatient: Building a Blog 57

Chapter 3: Starting Out 77


Part II: Django in Depth

Chapter 4: Defining and Using Models 89

Chapter 5: URLs, HTTP Mechanisms, and Views 117

Chapter 6: Templates and Form Processing 135


Part III: Django Applications by Example

Chapter 7: Photo Gallery 159

Chapter 8: Content Management System 181

Chapter 9: Liveblog 205

Chapter 10: Pastebin 221


Part IV: Advanced Django Techniques and Features

Chapter 11: Advanced Django Programming 235

Chapter 12: Advanced Django Deployment 261


Part V: Appendices

Appendix A: Command Line Basics 285

Appendix B: Installing and Running Django 295

Appendix C: Tools for Practical Django Development 313

Appendix D: Finding, Evaluating, and Using Django Applications 321

Appendix E: Django on the Google App Engine 325

Appendix F: Getting Involved in the Django Project 337


Index 339

Colophon 375

About the Author

Jeffrey E. Forcier currently works as a systems administrator and backend Web developer at Digital Pulp, Inc., a New York-based interactive agency and Web development company. He has 7 years experience in Web development with PHP and Python, including professional and personal use of the Django framework since its public release in 2005. He holds a degree in Computer Science from the University of Massachusetts.
Paul Bissex has worked as a graphic designer, writer, teacher, babysitter, and software developer. He was an early adopter of Django and is the creator and maintainer of, the Django community pastebin site. From September to June, he can be found at the Hallmark Institute of Photography (, teaching Web development and using Python and Django to build everything from attendance systems to housing databases to image processing utilities. His writings on technology have appeared in Wired,, and the Chicago Tribune. Since 1996, he has served as a conference host for The Well (, which Wired magazine called "the world's most influential online community," and currently hosts the Web conference there. He lives in Northampton, Massachusetts, with his wife Kathleen.
Wesley J. Chun is author of Prentice Hall's bestselling "Core Python" series (, the Python Fundamentals companion video lectures, co-author of Python Web Development with Django (, and has written for Linux Journal, CNET, and InformIT. In addition to being an architect and Developer Advocate at Google, he runs CyberWeb (, a consultancy specializing in Python training. He has over 25 years of programming, teaching, and writing experience, including more than a decade of Python. While at Yahoo!, he helped create Yahoo! Mail and Yahoo! People Search using Python. He holds degrees in Computer Science, Mathematics, and Music from the University of California.

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

I've read four books on Django now, as well as the documentation on the Django website.
C. Young
So by the time I had finished that chapter, I had built two different Django sites but not really read anything about the language or framework or theory thereof.
Kelly P. Vincent
As a pretty experienced web programmer but new to django, I found this book very helpful.

Most Helpful Customer Reviews

32 of 34 people found the following review helpful By Kelly P. Vincent on December 22, 2008
Format: Paperback
We are a Python shop at work and have recently started developing in Django. So I picked this book up as a total beginner to Django, but an experienced Python programmer. I feel that the book would be more or less the same even for someone totally new to Python, because Django is definitely a different kind of beast.

Overall, this book was okay to good. I would give it 3.5 stars if I could. It is definitely targeted at beginners to Django (and possibly Python). As a Django beginner, I first ran through the tutorial on the Django website, because it is very thorough and good. I definitely recommend that as a starting place regardless of which book you end up buying. Then I cracked open this book. The first chapter is a 50-page introduction to Python, so I skipped that. Chapter 2 is a tutorial in which you build a simple blog. So by the time I had finished that chapter, I had built two different Django sites but not really read anything about the language or framework or theory thereof. I think this is a good thing, and this chapter is well-placed. Chapter 3 introduces Django. It covers dynamic web sites, communication, data storage, presentation, separating the layers (MVC), general django architecture, and "core philosophies of Django". It is a decent introduction, though I read through it quickly so I could get to the next three chapters.

The next three chapters make up the Django in Depth section and are the bread-and-butter of the book. The first chapter covers models, the second URLs/HTTP/views, and the third templates and form processing. For me, these were the chapters I was most looking forward to, where I would learn everything I needed to know to get started really understanding. And they let me down a bit.
Read more ›
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
14 of 16 people found the following review helpful By C. Young VINE VOICE on December 9, 2008
Format: Paperback Verified Purchase
I've read four books on Django now, as well as the documentation on the Django website. Some of the information in the other books is now outdated since Django 1.0 was released, but this book does not suffer from that problem.

I liked this book because it was short and to the point, is up-to-date, and clarified some of the documentation on the Django website.

If you only want to buy one book on Django, this would be the best one to get; in my opinion.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
10 of 11 people found the following review helpful By S. Taylor on January 21, 2009
Format: Paperback
Coming from a PHP background, I decided to take on a more serious development language for my future web projects. I picked Python and Django.

This book covers basic Python first. So it's not necessary to learn Python from a dedicated book. The primer in this book is adequate. And the online documentation is great to fill in the spaces as needed.

The thing I like most about the book is that it covers a tremendous amount of ground. The example projects use advanced functions and structures that other books avoid, and the coding structures can be complex and deep. DRY (Don't Repeat Yourself) is a core philosophy in Python and in Django. These authors do a great job keeping the code DRY. And that often means building elegant, but hard to understand code.

The thing I don't like about the book is related to what I think makes it so good. It's damn complex at times.

Often while trying to work through some code examples and reproduce the results, I find that I don't understand the structure of something. I'll end up spending 10 minutes or a few hours consulting the online docs learning the new functions and trying to understand some structure that is outlined in the book.

The book isn't very long for all the content that's packed inside. And that's mostly due to the fact that the authors have left out explanations for a lot of what is going on behind the scenes in their more complex bits of code.

Django is a pretty deeply nested framework (in my limited experience). When you call on an object, it might be a subclass of a subclass of another subclass that inherited from two other classes, one of which is a subclass of another. So, to really understand what an object is like can be complicated. The same goes for functions.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
3 of 3 people found the following review helpful By Adam Barrett on January 12, 2009
Format: Paperback
Frameworks and patterns are really becoming strong fixtures of the web development community. They are giving developers the ability to do more and do it faster. Django is a great example of a framework that is enabling developers to developer faster. I just a few lines of code you can create a blog (Chapter 2), a photo gallery (Chapter 7) or a content management system (Chapter 8). Where Django is a quick way to learn Python and create great applications, Python Web Development with Django (the book) is a great way to learn Django.

The first chapter is a great quickie on what Python is and about the parts of Python. It's a quick explanation of variables, tuples, lists, and more. The subsequent chapters walk you through all the inner workings of Django.

Jeff Forcier, Paul Bissex, and Wesley Chun really give you a great book, and plenty of great examples of what Django can do. In detail you are shown, explained what each part of Django you are working with is for, and the secrets to it's inner part. Often you are given options and directions on how to expand and change your application.

Probably the sweetest parts of this book is the appendix on Google App Engine. GAE allows the use of Django, and this appendix explains what it takes to add that to the mix so your app can move seamlessly into the cloud with Google App Engine.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

What Other Items Do Customers Buy After Viewing This Item?