Django 1.5 has just left and it is sending StreamingHttpResponse. Now I read this discussion , and the second answer actually outputs the stream on the page (actually just the data).
What I want to do is print the output of the stream response to the template, and not just print the data, as in the discussion .
What should I do? should I use javascript and call a view that implements StreamingHttpResponse, or is there a way to tell django about the rendering of the template and then send the StreamingHttpResponse data to the template (then I need to know which variables are stored in the data)?
Edit: The solution I have found so far is to write fragments of the last html page to a generator (output). The problem with this solution is that I cannot have, for example, a strip that grows with data streams (for example, the download bar).
ciao
django stream templates
EsseTi
source share