-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django Channels HTTP support extend documentation #2026
Comments
I am also looking for this and I've been struggling for two days now. Here's a Stackoverflow thread in case it yields any relevant results in future. |
Hi @Tomislav-Zoricic. To enable "normal" http routes with channels, you only need to have this in asgi.py:
And then you need to have
God speed! <3 |
I am interested in using Channels to support both my HTTP async requests, as well as websockets.
There are millions tutorials out there on how to implement websocket, and that part is very clear to me.
Things change when it comes to implementing HTTP async requests using Channels.
The only example given in the documentation is to set
http
todjango_asgi_app
.I can't find anywhere how to set urlpatterns to the
http
protocol mentioned, or how attach any routes to be handled through asgihttp
protocol.I see that there is such thing as AsyncHttpConsumer however once again, I can't find a way to connect it to the url that I could connect with
http
protocol.Would you mind adding an example to documentation of how to use async
http
with channels, not just websockets?Thanks a million!
The text was updated successfully, but these errors were encountered: