Thanks
On May 12, 5:27 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote:
> Andrew, it will build up its contents in memory. Consider how an exception
> thrown in your view will cause the response never to even be sent.
>
> Your best bet if you want to do streaming is to pass an iterator to the
> HttpResponse constructor. Your iterator should yield strings to its caller.
>
> -- Scott
>
> On Mon, May 12, 2008 at 12:16 PM, Andrew Smith <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hello
>
> > When I use response as a file-like object, by calling response.write
> > or passing it to something which expects a file-like object, does it
> > build up its contents in memory or stream them straight to the
> > browser?
>
> > TIA
>
> > Andy
>
> --http://scott.andstuff.org/|http://truthadorned.org/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---