[Answered ]-Does Django Channels work as intended as a WSGI app?

2👍

From reading the docs, what i get is, first you need to use a back end to run channel eg. redis, Sharding, and run “runworker”, but since it’s not an option for you, have a look at this http://channels.readthedocs.io/en/stable/backends.html

“””The in-memory layer is only useful when running the protocol server and the worker server in a single process; the most common case of this is runserver, where a server thread, this channel layer, and worker thread all co-exist inside the same python process.”””
So by avoiding third party backend you can use in-memory asgi layer and just run ‘runserver’ and the channel layer is setup. Just look for in-memory subtopic in the link

And if you keep the CHANNEL_LAYERS empty django’ll work as a wsgi app, but what we need is asgi app, and asgi is required for channels.

👤Yogesh

Leave a comment