I was able to get it working with the development server, python manage.py
runserver, with an addition to the firewall on Google Cloud.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails fro
Here is my nginx default configuration if that could be it.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
charset utf-8;
index index.html index.htm index.nginx-debian.html;
server_name _;
location /
I am trying to only use Daphne for websockets I believe, following the
deployment tutorial in the Channel documentation. And yes I am running both
processes on the same machine.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe
Well, if daphne is serving you webpages, then the channel layer is working
fine (everything goes over it, including HTTP). However, if you are just
using Daphne for websockets, then it may not be working at all - which is
the case? And are the worker and daphne processes running on the same
machine
I have "socket = new Websocket("ws:// ...", "socket.onopen," and
"socket.send" commands in my Javascript code, and although the Javascript
works, it seems to not be able to run these commands, or it is unable to
access my functions in consumer.py, althought it works flawlessly if I run
my proj
Andrew, it doesn't seem to have fixed my problem. I type the following
command, and am able to connect to my public ip, and although my page
loads, only the frontend does anything. Channels does not work.
$ daphne -b 0.0.0.0 firstproject.asgi:channel_layer
2017-05-03 06:11:51,196 INFO Starti
Aha, it looks like your daphne instance is only listening on localhost:
2017-05-02 07:01:04,853 INFO Starting server
attcp:port=8000:interface=127.0.0.1, channel layer
firstproject.asgi:channel_layer.
Try binding to all interfaces by passing
-b 0.0.0.0
to Daphne when it starts.
Andrew
On
I am using Google Cloud to host my Django project, and I'm trying to run it
with Nginx. I open two instances of the terminal, one with the command
"python manage.py runworker" and the other with "daphne
firstproject.asgi:channel_layer". I am able to connect to my public ip, and
the page loads t
8 matches
Mail list logo