The ORM has quite a few failings. Granted I like the API, though the backend code is nothing short of a cluster-fuck.
The ORM has quite a few failings. Granted I like the API, though the backend code is nothing short of a cluster-fuck.
The ORM also works quite well for what it does. It doesn't allow you to construct real SQL queries and non-existant objects, but that's it.
It's the restrictiveness compared to e.g. Jinja2 or Mako. With those engines, I can just drop in a Python function and be done with it; with Django template engine you end up writing tons of template tags for the simplest things. It's designed for a particular work environment (designers work on templates, so should not be allowed to do anything dangerous) that I've found to be quite rare in most projects.
> not for making queries like other templating systems
WTF ?
I won't be able to come back to you because it would be too inefficient doing something more advanced than that in the template layer. Because rather than write the python to write template syntax to be interpreted back into python, I simply wrote the logic in one-pass python in the view function. It's more direct, runs faster, and your templates are clearer to designers if you're working in a group project.