All Questions
Tagged with websocket django-channels
580
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 ...
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 ...
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 ...
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 ...
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....
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['...
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 ...
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 ...
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, ...
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
...