Re: Adding Channels to and Existing Django Application

2018-11-06 Thread Andrew Godwin
I'm afraid I don't have an easy example to hand - maybe someone else does. It sounds like you might have something odd in your settings, models.py, or other files that load at startup. Andrew On Tue, Nov 6, 2018 at 5:31 AM wrote: > even down to running two different servers for that project, on

Re: Adding Channels to and Existing Django Application

2018-11-06 Thread jz
> > even down to running two different servers for that project, one normal > WSGI one and one ASGI one to let you do async things. I've tried doing that, but failed. I've created a asgi.py file and tried to run it with daphne, but the server didn't start. Daphne simply hang there. To my surp

Re: Adding Channels to and Existing Django Application

2018-11-05 Thread Andrew Godwin
Hey, You can just add channels to an existing Django project and only use it for the bits you need it for - even down to running two different servers for that project, one normal WSGI one and one ASGI one to let you do async things. You shouldn't migrate any existing code to channels - just add

Adding Channels to and Existing Django Application

2018-11-04 Thread jz
Greetings y'all! I'm looking for recommendations regarding adding Channels to an existing Django 1.11 application. Every guide I've followed assumes that one is using Channels to build an application from scratch, and that is OK to replace django's native calls by Channels. Channels' document