Django design patterns

by shabda on July 3, 2009

This is announcement about our new work, Django design patterns, a ebook about, well, Django design patterns. (Well imagine that!). Here is the readme copied from there.


[Edit] Syntax highlighting and indentation preservation were totally brroken. Fixed now.


Django design patterns is a book about commonly occuring patterns in Django. Not patterns in Gof sense, but patterns in the sense, we work this way, and it works for us. For us it is a ~pattern of work~ sense.

At this point this is just a lot of brain dump from us.

The latest sources are always available from http://github.com/uswaretech/django-design-patterns/tree/master and latest html from http://djangodesignpatterns.uswaretech.net/


Please leave errata, feedback, critique as comments here.


This is still very much a work in progress, released in the spirit of release early, release often. Click here to get it, or fork it on Github

Related posts:

  1. Django gotchas

1 Comment 4 Comments 1 Tweet

{ 14 comments… read them below or add one }

1 Tiago S. July 3, 2009 at 12:51 pm

This is really interesting. Thanks for doing it.

I’d like to keep up with the progress, but I didn’t find any rss on the github’s project file, so I don’t know if it’s possible.

2 Vitaly Babiy July 3, 2009 at 1:03 pm

This is really awesome, going to keep up with the progress

3 shabda July 3, 2009 at 1:49 pm

@tiago here you go. http://github.com/feeds/uswaretech/commits/django-design-patterns/master

Or follow us on twitter(@uswaretech), where we will make announcement, when we do a major update to the book.

4 Tiago S. July 3, 2009 at 2:22 pm

Thanks, shabda!

5 Jonathan Biddle July 4, 2009 at 7:19 am

I just skimmed through and already picked up some great ideas. Thanks a ton for this!

6 bayo opadeyi July 4, 2009 at 4:41 pm

thanks, very handy. Is your github download up to date by any chance? I noticed a small typo that may trip noobies to django in the multiple model manager’s section: class ModelClassApprovedOnlyManager(models.Manager): self.get_query_set().filter(is_approved = True)

the code does not include the def statement and all… but again this is for internal use i guess

7 Adam July 6, 2009 at 12:13 pm

Under Workflow, varius is a typo

8 Paul July 15, 2009 at 11:22 pm

This is a great thing you have done!

I will definitely use this to improve my Django understanding and skills!

9 hylje July 3, 2009 at 3:25 pm

As of right now the formatting is faulty, losing crucial whitespace.

This comment was originally posted on Reddit

10 TheSpammer July 4, 2009 at 1:52 am

http://tinylink.com/?RtTuT9acOt

This comment was originally posted on Reddit

11 bemo56 July 4, 2009 at 9:44 am

Thanks, Will there be a pdf version of this book released at any time?

This comment was originally posted on Reddit

13 f4nt July 6, 2009 at 5:05 pm

Glad to see I’m already following a lot of these patterns. Love docs like this, even though it has some typos, spelling errors, etc. Also, picked up some tricks that I feel stupid for not picking up previously.

This comment was originally posted on Reddit

14 Steve Lacy July 10, 2009 at 5:03 pm

This needs a *lot* of flushing out, and many more code & app examples. A section on data denormalization would be great.

This comment was originally posted on FriendFeed

Leave a Comment

Additional comments powered by BackType

Previous post:

Next post: