Re: Channels with django signals

2018-02-03 Thread John Wayne
Oh I saw that you fixed it recently. Thank you anyway :) On Sunday, February 4, 2018 at 1:22:58 AM UTC+1, Andrew Godwin wrote: > > Hi John, > > This is fixed in the asgiref master branch, I should be releasing it soon. > > Andrew > > On Sat, Feb 3, 2018 at 4:14 PM, John

Channels with django signals

2018-02-03 Thread John Wayne
Hi everyone, I am trying to send a channels message from a django signal. The problem ist that the signal function is not async. So I tried to use the AsyncToSync wrapper. But it seems this is not possible as the signal handler is run by a thread and has no event loop. ... self.main_event_

Re: Getting channels 2 to work

2017-12-04 Thread John Wayne
> > I'll have a lot more docs and stuff coming soon as I start prepping > Channels 2 for a beta release, which will include routing and setup > examples. > > Andrew > > On Fri, Dec 1, 2017 at 6:03 AM, John Wayne > wrote: > >> Hi everyone, >> >> I am

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