I am working on a report generator which needs to render potentially
huge sets of data into an html table.

The method that generates the rows is an iterator.  I believe that if
I do something like:

return HttpResponse(my_iterator())

it will do what I want.  Except that I want to do it with a template.

I can do something like:

return render_to_response('report.html',
dict(output=generate_output()))

and it works, but it does all the rendering before it starts sending
to the browser, incurring the potentially large memory requirements of
doing so.

I'd like to be able to render a template straight down the wire to the
browser on the fly.

Is this possible?

Thanks for any assistance,
Steve Bergman


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to