You can just use channels.http.AsgiHandler as the consumer/ASGI app to hand off to Django views. It's mentioned in the last paragraph here: http://channels.readthedocs.io/en/latest/topics/routing.html#protocoltyperouter
Andrew On Tue, Mar 13, 2018 at 9:20 AM, Kevin Tewouda <[email protected]> wrote: > Hello, > i am developing an application (a REST one) which have to serve some sse > events to a web application. I saw in the latest documentation how to > create an SSE consumer, but now when i create an http routing for > consumers, i can't serve the others requests using the "classic django view > system". So my question is how can i separate the sse routing from the > other http requests to have all of this working properly. > Thanks in advance for your suggestions. > > Best regards > > -- > 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 https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/6b19b58f-d5e3-4e31-908b-a9371e31b2cc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/6b19b58f-d5e3-4e31-908b-a9371e31b2cc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1urnqpo%2Bh122rkNLNBYA-o%3D35LWhvnHKx%2BRDYTdWROHt-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

