Re: Getting channels 2 to work

2018-03-30 Thread Andrew Godwin
That code would be for Channels 1. Channels 2 is an entirely different import set - make sure you are using tutorials or answers specifically for 2. Andrew On Thu, Mar 29, 2018 at 4:52 PM, Luke Waltman wrote: > Hello Everyone, > > I am still having an issue with Channels that was never really s

Re: Getting channels 2 to work

2018-03-30 Thread Luke Waltman
Hello Everyone, I am still having an issue with Channels that was never really solved in an earlier Stackoverflow question... Why does : from channels.asgi import get_channel_layer result in : from channels.asgi import get_channel_layerImportError: No module named asgi I am using Django (2.0

Re: Getting channels 2 to work

2017-12-04 Thread Andrew Godwin
Hi John, The ProtocolTypeRouter currently does this for you automatically as long as you don't specify a `http` handler. Otherwise, the ASGI application that runs Django's view system is channels.http.AsgiHandler Andrew On Mon, Dec 4, 2017 at 7:56 AM, John Wayne wrote: > Hi Andrew, > > first o

Re: Getting channels 2 to work

2017-12-04 Thread John Wayne
Hi Andrew, first of all thanks for your reply. With your answer and the information from your blog I was able to get my asgi application running. Now I want to route all http traffic to django's viewsystem back as i dont need channel's http handling. On your blog you posted this snippet appli

Re: Getting channels 2 to work

2017-12-01 Thread Andrew Godwin
Hi John, It's not in an end-user-useable state quite yet, so apologies for it being hard to install. Crucially, the docs on ASGI_APPLICATION aren't written yet as I'm still working on authentication stuff! A brief guide is: - Make an asgi.py as specified in http://channels.readthedocs.io/en/2.0

Getting channels 2 to work

2017-12-01 Thread John Wayne
Hi everyone, I am stuck getting the new channels 2 to a working state. I installed django==2.0rc1, and channels==2.0.x, daphne==2.0.x, asgiref==2.0.x from the git repo channels is enabled inside the settings.py. I also created the asgi.py file in the direcotry of the wsgi.py file acording to t