Django Patterns: Model Inheritance October 09, 2010 14:41 / 5 comments

This post discusses the two flavors of model inheritance supported by Django, some of their use-cases as well as some potential gotchas.


Django Patterns: View Decorators September 23, 2010 01:25 / 5 comments

Sites often have many views that operate with a similar set of assumptions. Maybe there are entire areas that the user must be logged-in to visit, or there is some repetitive boilerplate functionality that a group of views shares like being rate-limited. This post looks at ways to make this kind of functionality less repetitive by using a common Django pattern, view decorators.


Django Patterns: Pluggable Backends September 15, 2010 11:20 / 5 comments

As the first installment in a series on common patterns in Django development, I'd like to discuss the Pluggable Backend pattern. The pattern addresses the common problem of providing extensible support for multiple implementations of a lower level function, be it caching, database querying, etc.