3 ms·
I believe they suggest you write custom logic as a template tag, rather than in the view. However, I do agree that the naming conventions are unfortunate, to sa
by MWinther 16y ago
I believe they suggest you write custom logic as a template tag, rather than in the view. However, I do agree that the naming conventions are unfortunate, to say the least.
In my experience not doing this separation encourages people solving controller-level problems on the view level, just because they can. Of course, it's just a "quick fix, I'll fix that properly later" everytime that happens. This philosophy is what drew me to Django in the first place, I really dislike HTML fragments in code, and having done enough rewriting of code when it's time to redesign the web site makes this a big feature for me.
Of course, being Django, it's loosely coupled and you can easily switch out the template language to something else.