This is announcement about our new work, Django Gotchas, a teeny tiny ebook about commonly occurring gotchas with Django. Here is the readme copied from the project.
Django-gotchas is a collections of gotchas which happen commonly when you are working with Django. They are some errors which I have made commonly or seen others do, these are not the errors which happen because they are hard to reason about, these are those errors which hapen when you close your eyes for a moment when coding.
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 Bitbucket
In Other news
- We have slightly updated the Django design patterns, though not the public website.
- cyrildoussin has done a lot of changes to Socialauth and made it much better. You can get it here . Thank! We will be merging this soon.
Related posts:

{ 10 comments… read them below or add one }
Looks good!
There’s a small typo on the urls page:
url(‘^edit/(?P[w-]+)/$’, edit_view, )should be:url(‘^edit/(?P[\w-]+)/$’, edit_view, )Didn’t know that in 1.1 you don’t have to wrap template for loops in if’s anymore… just do a for on the .all {% for comments in post.comment_set.all %}
This comment was originally posted on Reddit
These don’t appear to be Django gotchas so much as Python gotchas.
This comment was originally posted on Reddit
#django gotchas #ebook: http://is.gd/4ToPc
This comment was originally posted on Twitter
> these are not the errors which happen because they are hard to reason > about, these are those errors which hapen when you close your eyes for a > moment when coding. I find I get gotcha’d more because that it doesn’t behave the way I’d expect it to based on my experience with other web frameworks. I find I get gotcha’d surprisingly frequently with Django. … Just got to get over that hump..
This comment was originally posted on Reddit
These don’t necessarily seem to be gotcha’s as mis-understandings of either python, regex, or django basics. To me a gotcha would be something like how there isn’t any easy way to do many-to-many fields as check-boxes… or other things in the otherwise awesome django framework that are exceedingly difficult to do when they shouldn’t be (though this is relatively rare). These are more or less errors than novices make. Not necessarily "gotcha’s" or shortcomings in the framework itself.
This comment was originally posted on Reddit
yeah, and there’s the {% empty %} thing too, for when the list is empty.. very nice and faster than the old way..
This comment was originally posted on Reddit
http://bit.ly/29I716 Django gotchas
This comment was originally posted on Twitter
“Django Gotchas, a teeny tiny ebook about commonly occurring gotchas with Django.” http://bit.ly/1CNTQa
This comment was originally posted on Twitter
Django….. to each their own, i suppose.
This comment was originally posted on Reddit