shabda
Comments
Reactions

Django gotchas

By : Shabda Raaj

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


Related Posts


Can we help you build amazing apps? Contact us today.

Topics : django book tutorial

Comments

Jonathan Biddle

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, )

commmenttor
free

These don’t appear to be Django gotchas so much as Python gotchas.

commmenttor

Reactions

tehpoopsmith

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

RedSpikeyThing

These don’t appear to be Django gotchas so much as Python gotchas.

This comment was originally posted on Reddit

wasbeer

#django gotchas #ebook: http://is.gd/4ToPc

This comment was originally posted on Twitter

mclin

> 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

orangesunshine

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

paddie

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

uswaretech

http://bit.ly/29I716 Django gotchas

This comment was originally posted on Twitter

brianfive

“Django Gotchas, a teeny tiny ebook about commonly occurring gotchas with Django.” http://bit.ly/1CNTQa

This comment was originally posted on Twitter

jigs_up

Django….. to each their own, i suppose.

This comment was originally posted on Reddit

Post a comment Name :

Email :

Your site url:

Comment :

© Agiliq, 2009-2012