I have a django view which uses a template to display a long queryset (> 800 items). It takes several seconds for the view to render, and when it’s done rendering the entire page, it sends it to the browser. Instead, I want the Template to render as an iterator, so that it can transmit the page line by line (and so I can see the page appear in my browser) as it is generated. I don’t want to wait several seconds before I see anything.
Right now my view returns render_to_response('view_name.html', {items:myitems}).
Is rendering a template to an iterator as I’ve described possible in Django?
Not via templates, no.
You can treat an HttpResponse as an iterator, yielding your output line-by-line, but template rendering is an all-in-one process (as it has to be, because of the need to resolve blocks etc).