Re: streaming output

2008-07-09 Thread Brogli
PEP 333 indicates chunked encoding is ok in WSGI apps: "And, if the server and client both support HTTP/1.1 "chunked encoding" [3], then the server may use chunked encoding to send a chunk for each write() call or string yielded by the iterable, thus generating a Content-Length header for each

Re: streaming output

2008-07-09 Thread Brogli
Thanks for the information. I was hoping to use Django for all of the web application I'm building (which requires a continuous stream of data to the client rather than poling) though it appears I'll have to build the streaming portion outside of Django, or perhaps modify the server behavior to

Re: streaming output

2008-07-08 Thread Joshua Jonah
Not that i know of, but you'd be surprised how easy it is to write a socket server in Python: http://www.amk.ca/python/howto/sockets/ Brogli wrote: > Hi, > Is there an easy way to get a handle to the output file stream in a > Django application? Instead of building an entire response in

Re: streaming output

2008-07-08 Thread Malcolm Tredinnick
On Tue, 2008-07-08 at 13:31 -0700, Brogli wrote: > Hi, > Is there an easy way to get a handle to the output file stream in a > Django application? Instead of building an entire response in memory > then sending it out, I'd like to send the response in pieces. Not really (in a reliable way).

streaming output

2008-07-08 Thread Brogli
Hi, Is there an easy way to get a handle to the output file stream in a Django application? Instead of building an entire response in memory then sending it out, I'd like to send the response in pieces. thanks, Dave --~--~-~--~~~---~--~~ You received this