Django 1.5 is just came out and it ships the StreamingHttpResponse. Now, I've read this discussion and the second answer actually prints out the stream in a page (actually just data).
What I want to do is to print the output of a stream response into a template, not just print the data as in the discussion.
What should I do? do I've to use javascript and call the view that implements the StreamingHttpResponse, or there's a way to tell django to render the template and later send the StreamingHttpResponse data to the template (then I need to know what's the variables where data are stored)?
Edit: the solution I found so far is to write the pieces of the final html page into the generator (yield). The problem of this solution is that I can't have, for example, a bar that grows with the data streamed (like a loading bar).
ciao