Re: Channels, daphne, and asgiref, oh my!

2020-02-24 Thread Larry Martell
When I was using uwsgi, here was my nginx file: upstream django { # server unix:/run/uwsgi/devAppReporting.sock; } server { listen 8090; server_name foo.bar.com; charset utf-8; location /static { alias /var/dev-app-reporting/static;

Re: Channels, daphne, and asgiref, oh my!

2020-02-24 Thread Larry Martell
Thanks Andrew. Upgrading to py 3.7 did the trick. Now struggling to get daphne working with nginx and TLS. Can't seem to get a nginx config file that works for me. On Fri, Feb 21, 2020 at 10:50 PM Andrew Godwin wrote: > > Hi Larry, > > Your problem is the Python version - 3.5 is somewhat old (but

Re: Channels, daphne, and asgiref, oh my!

2020-02-21 Thread Andrew Godwin
Hi Larry, Your problem is the Python version - 3.5 is somewhat old (but most importantly, was still a very rough release for asyncio) and isn't supported by any current release of asgiref/channels for that reason. If you are able to upgrade that, I very much recommend it. Andrew On Sat, Feb 22,

Re: Channels, daphne, and asgiref, oh my!

2020-02-21 Thread Aldian Fazrihady
I have these working module combinations, but my Python is 3.6.9: asgiref==2.2.0 channels==2.0.2 channels_redis==2.3.0 daphne==2.1.0 Django==2.2.4 django-redis==4.10.0 redis==3.3.6 Twisted[tls,http2] uwsgi==2.0.18 websockets==6.0 On Sat, Feb 22, 2020 at 3:25 AM Larry Martell wrote: > I am in a b

Channels, daphne, and asgiref, oh my!

2020-02-21 Thread Larry Martell
I am in a bit of version hell. Not fun on a Friday afternoon. Django 2.0.4, python 3.5.2 Trying to get channels, websockets, daphne, and asgiref working. When I installed the latest channels it did not work with my version of mysqlclient and some googling led me to install 2.0 of channels. That