Building a web framework: Django's design decisions
Upcoming SlideShare
Loading in...5

Building a web framework: Django's design decisions



Since its release three years ago Django’s grown by leaps and bounds; it’s now part of a highly successful new generation of web development tools....

Since its release three years ago Django’s grown by leaps and bounds; it’s now part of a highly successful new generation of web development tools.

However, it hasn’t all been smooth sailing for the Django team. As any Open Source community does, we’ve needed to make a series of tough decisions along the way. These decisions have shaped Django’s internals, public APIs, and community.



Total Views
Views on SlideShare
Embed Views



3 Embeds 47 30 14 3



Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Building a web framework: Django's design decisions Building a web framework: Django's design decisions Presentation Transcript

  • Building Django Jacob Kaplan-Moss PyCon March 29, 2009
  • History
  • LJW
  • Adrian/Simon
  • Wakarusa 2008 › Find photos Great 'cue. Cheap from the festival beer. View. Log in to here (new photos post › All ads this still coming in) and video week comments. posted here. More to be posted Cornmeal / Hoots & Hellmouth: Steeped in as soon as we dry out... the tradition of legendary acts, this Chicago band uses bluegrass as a springboard for long improvisational work and songs ranging from country and rock to jazz and funk ... School of Wak (Soggy More info Edition) (Ten Million Pounds
  • “The CMS”
  • Philosophy
  • Make development fast
  • Automate repetitive tasks
  • Best practices
  • “ The ink is never dry on these babies. ” — Adrian Holovaty
  • Choices
  • Open Source
  • BSD license
  • Pragmatism over Methodology
  • GoF? MVC? TDD?
  • Snake Oil
  • “ No silver bullet. ” — Fred Brooks Author of The Mythical Man-Month
  • The Real World
  • “ Build cool shit. ” — Rob Curley
  • Ramifications
  • “What’s the need?”
  • No architecture astronauts
  • Reinventing the wheel
  • “Magic” over boilerplate
  • Web development is boring
  • It should be fun!
  • APIs should match behavior, not show how they work
  • Ramifications
  • It can go too far.
  • Messy internals
  • More power in less code
  • Easier to document
  • “Full stack”
  • “Best of breed”
  • Why full stack?
  • Lack of choices at the time
  • “Glued together”
  • Ramifications
  • More control
  • Don’t repeat Zope’s mistakes
  • “ Innovation happens elsewhere. ” — Bill Joy
  • Small pieces advance quicker
  • “Sensible defaults”
  • “Opinionated Software”
  • Ego is dangerous
  • You can’t possibly predict what everyone wants
  • ... so listen to your users! (this is harder than it sounds)
  • “One obvious way” over “pluggable components”
  • Autumn Modeling PDB PyORM SQLAlchemy SQLObject Storm ZODB
  • Choice is good for experts ...
  • ... but not good for new users
  • More beginners
  • “ Don’t make me think. ” — Steve Krug
  • “ It seems ... that if choice is good, then more choice is better. The paradox is that this “obvious” truth isn’t true... a point can be reached where, with more choice, people are worse off. ” — Barry Schwartz “The Paradox of Choice”
  • Ramifications
  • Consistency
  • Make complicated things easy
  • Don’t reinvent the wheel
  • Set our own pace Skip to end
  • Choices in the future
  • Long tail or huge scale?
  • #2 Yahoo #5 Facebook #8 Wikipedia #16 Photobucket #19 Flickr #20 Comcast #23 Wordpress
  • Standard | Distance | Phone Number Business Name or Category City, State, ZIP Code or Neighborhoo Set as Default Location Atlanta Dallas Las Vegas New York S Austin Denver Los Angeles Oklahoma City S Baltimore Detroit Louisville Orlando S Boston Houston Memphis Philadelphia S Charlotte Indianapolis Miami Phoenix S Chicago Kansas City Milwaukee Saint Louis M Careers Browse Yellow Pages About YELLOWPAGES.COM Contact Us Site Map Help Adv AT&T AT&T Wireless AnyWho Ingenio Yellow Pages Keen Privacy Policy Terms & Conditions Phone Book Recycling © 2008 YELLOWPAGES.COM LLC. All rights reserved. © 2008 AT&T Intellectual Property. All rights reserved. AT&T, AT&T logo and all other marks containe Some data provided by Localeze and Acxiom. #643 BROWSE STATES Alabama Colorado Hawaii Kansas Massachusetts Montana Alaska Connecticut Idaho Kentucky Michigan Nebraska Arizona Delaware Illinois Louisiana Minnesota Nevada Arkansas Florida Indiana Maine Mississippi New Ham California Georgia Iowa Maryland Missouri New Jers
  • my All Games Home News Forums WoW Addons WAR Addons B Welcome to Curse. login B Signup now to take advantage of amazing Features! The new si read more Beta Curse Network Services Enhance Addons are extens experience. We ha to browse addons World of #1295 Age of C Warhamm
  • !quot;#$%$&'()$*+',-. !quot;#$%&'(&)*+'
  • !quot;#$%&'&$ ())* +)
  • !quot;#$%&'&$ ())* +,
  • !quot;#$%&'&$ ())* +(
  • “Enterprise”
  • Is this a competition we want?
  • Backlash
  • “Rails doesn’t scale” s Maps News Shopping Gmail more ! Advan rails doesn't scale Search Prefe Results 1 - 10 of about 4,680,000 for rails doesn't scale. (0.0 Rails Doesn't Scale? . quot;I've heard a few people mention that they heard that Rails doesn't scale stions on how we might alleviate their doubt?quot; ... - 31k - Cached - Similar pages Interview with Twitter Developer Alex Payne its: Ruby On Rails Can’t Scale at Brandon Werner // Apr 13, ... the rubber is d, and the thing doesn’t scale on the DB end. ... - 161k - ilar pages aid Rails doesn’t Scale?” Features
  • “Django doesn’t ...?” Maps News Shopping Gmail more ! Adv quot;django sucksquot; Search Pref Results 1 - 10 of about 189 for quot;django sucksquot;. (0 ks eaningless: Django sucks from Alan's clob. [RSS] Picture of the blogger ... o sucks: 21.5 ... nkila/blog/2006/05/21/Django%20sucks.html - 28k - Cached - Similar pages compression sucks phasis: 29.9; Hitman: 7.9. 2006, 8. Misc: 23.8. 2006, 6. DSP progress: 29.6; B is: 19.6; Atari ST audio: 17.6. 2006, 5. Django sucks: 21.5 ... - 23k - - Similar pages
  • Keep out the ego
  • Invite criticism ... and take it well
  • Make conscious decisions
  • Thanks! <>
  • Photo credits Lawrence Journal-World (with permission) Free Software Foundation (GDFL license) Poul-Henning Kamp (Beerware license) NASA (public domain)