On Fri, Nov 15, 2013 at 12:08 PM, Jorge Cardoso Leitão
<jorgecarlei...@gmail.com> wrote:
> I believe that is not possible with Django views. Views are made for
> request-response, i.e. the client sends a request, the view returns a
> response, and that's it, end of connection.


i think the WSGI standard does support it, by setting a generator
instead of a string value as the response content.

the generator is a function that yield()s more content each time, so
the HTTP response becomes a stream of data.

but i think you're right that Django doesn't support it.

-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFkDaoQaCYa%2BwGRKtZcjvY%3DyE-0%2Bz0THUMj%2BZOftZeykCREuNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to