3 ms·
Django templates intentionally provide greatly limited functionality compared to full-python. The idea is that you prepare the needed data in the "view," and t
by fwip 5y ago
Django templates intentionally provide greatly limited functionality compared to full-python.
The idea is that you prepare the needed data in the "view," and then the template should be relatively dumb. If the template is causing any database/backend requests while rendering, that's generally a sign that you haven't put enough information into your view layer.