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). One constraint is that Django is designed to operate seamlessly as a WSGI application and the WSGI specification does not permit responses to be streamed in pieces ("chunked transfer encoding" in the HTTP 1.1 parlance) from an application. Yes, it's theoretically possible to pass a generator to the HttpResponse, but there are lots of technical problems that can arise. Some of which are being worked out on the dev list at the moment, some of which are just technically impossible (like the WSGI constraint). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---