Thanks to both of you
On Jan 8, 2014 11:08 AM, "Nikolas Stevenson-Molnar" <[email protected]>
wrote:

> Thank you, that's a very good point! I'm so used to thinking about
> Django in the context of the request/response cycle that I didn't think
> about pairing it with a websocket framework to take on that task.
>
> _Nik
>
> On 1/8/2014 3:56 AM, Tom Evans wrote:
> > On Mon, Dec 30, 2013 at 7:14 PM, Nikolas Stevenson-Molnar
> > <[email protected]> wrote:
> >> The reason for this (someone please correct me if I'm wrong on this) is
> that
> >> Django isn't meant to hold connections indefinitely. Ideally you want
> to get
> >> a request and turn around a response as quick as possible. Using the
> >> nginx-push-stream-module, you let Nginx handle all the persistent
> >> connections (which it does very well with 10k+ connections).
> >>
> > I wouldn't say "wrong"....
> >
> > Django provides WSGI connection adapters and a framework for handling
> > HTTP requests. These adapters and framework are great at handling
> > regular HTTP requests.
> >
> > However, Django is not *just* a WSGI connection adapter and a HTTP
> > framework, it is a python library for doing all kinds of things. You
> > can take any python websocket implementation and do things "in django"
> > with it - use your models, access your cache, render templates, create
> > and validate forms, etc - because django is simply another library you
> > can use whenever you are programming in python.
> >
> > Cheers
> >
> > Tom
> >
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/vZQ3C4DS73g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> 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/52CD77F6.1000807%40consbio.org
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAO2PNV4vO3%3D%2B5ynTbTc8GaYdVV_7Uh4tHwO6A2OV_Mt4H9%2Bnzw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to