Hello, I'm trying to write a view in Django that outputs data for a long period of time, and returns it to the client as it gets produced.
For example, if I wanted to build a malling application, I have to display the email address each time an email is sent, say every 2 sec. Processing can be quite long, so I cannot accumulate the output and return the HttpResponse at the end, because the connection would timeout. I need to keep the HTTP connection open, and regularly flush the data. If I understood correctly, the way Django works is that the view builds a HttpResponse object with the response content, and only when the HttpResponse is returned is the HTTP request sent to Apache (for the mod_python handler that is). So there is a clear separation between Django's HttpResponse and the server's reponse, which is necessary if we want to have multiple handlers. Is there a way to do this in Django without breaking the abstraction layer? -- Arnaud --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers -~----------~----~----~----~------~----~------~--~---