“I quickly found that if I couldn’t express something with the template system, I was doing something wrong, and it led me to think a little more about the structure of my app.” This can be repeated enough. Almost every time I’ve ever said to myself, “Man, I wish I could do x in the Django template language,” my next thought was, “Except that would be stupid, because that should really be done at the view level.” Much of Django is designed the way it is in order to encourage best practices. It’s actually hard to be sloppy with Django.
No one has posted any comments on this entry as of yet. Perhaps you’d like to be the first?
Post your comment