Skip to main content

All Questions

9 votes
2 answers
2k views

Websocket error when using Elastic Beanstalk with Django channels

I am trying to get a chat app powered by django channels to work on AWS Elastic Beanstalk with a load balancer. I am basically modifying the code from https://github.com/jacobian/channels-example to ...
user3667089's user avatar
  • 3,188
3 votes
1 answer
3k views

Working with django channels and websockets

I have a form to input Line coordinates at 127.0.0.1:8000/dashboard/ and an "Ok" button to submit the coordinates. The coordinates are posted at 127.0.0.1:8000/api/line/ by calling the view ...
User_Targaryen's user avatar
0 votes
1 answer
698 views

Django channels: Echo example issues

I'm following the sample code provided by the channels documentation and have run into a issue. The django server successfully accepts a websocket from the browser and sending appears to work. However ...
Kenneth Lim's user avatar
3 votes
1 answer
4k views

Daphne server cannot connect with websockets on HTTPS

I'm deploying a Django project on the Openshift cloud. This project uses channels and Websockets to make it work asynchronously. The problem is that I can't successfully connect websockets from the ...
pazitos10's user avatar
  • 1,681
0 votes
1 answer
2k views

Django Channel web sockets - append message to Model.objects

Lately, I've been investigating onto integrating web sockets into Django. According to the documentation, using Channels is the way to go. Given an illustrative model Query class Request(models....
dsafa's user avatar
  • 793
2 votes
1 answer
2k views

Django channels websocket.receive is not handled

I'm trying to implement Django channels going through the docs. So like the docs i'm making consumers.py def ws_message(message): message.reply_channel.send({ "text": message.content['...
arminrock's user avatar
  • 535
10 votes
1 answer
3k views

Django channels - Echo example not working

I'm following the instructions in the documentation site, but I got stuck in the echo example, the websocket is created correctly and it's connected to the server but when I send anything to the ...
pazitos10's user avatar
  • 1,681
1 vote
0 answers
687 views

Django Channels WebSocketProtocol error

I am attempting to stand up an instance of django with channels. I have successfully deployed in a dev environment where I can use the django runserver to server data to localhost. In my prod ...
user3294045's user avatar
2 votes
2 answers
1k views

Django Channels - Internal Custom Routing not working

I'm building a chat application based on this example (https://github.com/andrewgodwin/channels-examples/blob/master/multichat/chat/routing.py). When the javascript runs (socket already open, ...
Utkarsh Sinha's user avatar
12 votes
2 answers
18k views

How to configure Apache to run ASGI in Django Channels? Is Apache even required?

I built a django-project and deployed it to production using Apache-WSGI combo. For that I had added the apache2.conf as shown below: WSGIScriptAlias / /home/ubuntu/MyProject/MyProject/wsgi.py ...
Utkarsh Sinha's user avatar

15 30 50 per page
1
35 36 37 38
39