Django in the Real World

Python, Web Applications
Location: Meeting Room J1/J4
Presentation File:
Django in the Real World Presentation [PDF]
Average rating: ***..
(3.50, 4 ratings)

There’s plenty of material (documentation, blogs, books) out there that’ll help you write a site using Django… but then what? You’ve still got to test, deploy, monitor, and tune the site; failure at deployment time means all your beautiful code is for naught.

This tutorial examines how best to cope when the Real World intrudes on your carefully designed website. I’ll cover:

  • How to structure your code, dependancies, and development environment with an eye towards ease of deployment.
  • The different ways you should be testing and verifying your code.
  • How best to design staging and production environments.
  • Tools to automate deployment to production clusters (Capistrano, Fabric), and ways to produce isolated repeatable deployments (virtualenv, pip, zc.buildout).
  • Designing and configuring application servers (mod_python/mod_wsgi) and load distribution (nginx, perlbal).
  • Database load balancing options (sharding vs. replication) and tools.
  • Monitoring and logging sites in production.
  • Performance tuning, including caching, profiling, and getting the best performance out of application and database servers.

Along the way, I’ll discuss what’s behind some of sites I’ve got in production right now, especially the problems I ran into and how we solved them. I’ll also critique any production environments tutorial attendees would like to share with us.

This talk is designed for developers and system administrators who deploy Python-based web applications. I expect attendees to have a familiarity with Python, but much of the material will not be language specific, so those without Python experience should be able to following along.

In a similar vein, this talk will focus on Django, but the material could be useful to anyone looking to deploy web applications based on dynamic languages.

Photo of Jacob Kaplan-Moss

Jacob Kaplan-Moss

Revolution Systems, LLC

Jacob Kaplan-Moss is one of the lead developers of Django. At his day job, he’s a software architect for Whiskey Media, one of those newfangled Web One-Point-Oh companies you’ve read so much about. A good deal of Jacob’s work time is devoted to working on Django.

Jacob previously worked for the Lawrence Journal-World, a locally-owned newspaper in Lawrence, KS where Django was developed. At the Journal-World Jacob was the lead developer of Ellington, a commercial web publishing platform for media companies.

  • Intel
  • Microsoft
  • Google
  • Sun Microsystems
  • Facebook
  • Gear6
  • Kaltura
  • Liferay
  • MindTouch
  • Novell, Inc.
  • Open Invention Network
  • Rackspace Cloud
  • Schooner Information Technology
  • Silicon Mechanics
  • Symbian Foundation
  • Twilio
  • WSO2
  • Yabarana Corporation

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at

Download the OSCON Sponsor/Exhibitor Prospectus

Media Partner Opportunities

Download the Media & Promotional Partner Brochure (PDF) for information on trade opportunities with O'Reilly conferences or contact mediapartners@

Press and Media

For media-related inquiries, contact Maureen Jennings at

OSCON Newsletter

To stay abreast of conference news and to receive email notification when registration opens, please sign up for the OSCON newsletter (login required)

Contact Us

View a complete list of OSCON contacts