Let me make it very easy for my fellow soans (?).
This is how custom template tags usually work -
Template β
{% block content %} blah blah blah {% custom_tag_load %} {% endblock %}
Custom_tag_load is called and returns a string. What I want to return is a set of queries that I could use like this:>
{% block content %} blah blah blah {% for x in custom_tag_load %} {{ x.datetime }} {% endfor %} {% endblock %}
Note. > Basically, I try to avoid passing a request through a view, and I'm not sure that it should be convenient for me to store requests in my global context.
django django-templates
Sussagittikasusa
source share