All Questions
35
questions
0
votes
0
answers
420
views
Django Channels Config - Django / Docker / Gunicorn / Daphne / Nginx
I have deployed an app, pypilot.app using django / nginx / docker / daphne / gunicorn on a digital ocean droplet. Daphne is for Django Channels which works no problem in development to display ...
0
votes
1
answer
68
views
Django channels - Not Found: /ws/stock/track/
I'm following this video, but I don't get the same console output as in the video.
My console output:
[20/Feb/2024 19:09:12] "GET /stocktracker/?stockpicker=AAPL&stockpicker=AMGN HTTP/1.1&...
0
votes
0
answers
84
views
Django, Redis and channels: Using websockets to pass message to browser page via GET request for notifications
I am trying to set up some async notifications in my django app using redis and channels, and new to websockets!
I'm confused why my consumer methods are being called in a specific order (below). My ...
1
vote
0
answers
121
views
Why is my django-channels project not able to connect to Websockets in my Heroku deployed site?
I've been stuck at this for daaaays now and I realise that solution is probably simple but I no matter how much I read here and try I get the same error... When loading the chats part of my site I get ...
1
vote
0
answers
437
views
Using Django Channels with Redis Streams
I have written a Django application to receive updates of long running tasks. I am using Redis as a channel layer for web-sockets and also making use of Redis Streams to store the updates of the tasks ...
1
vote
0
answers
538
views
WebSocket connection getting rejected in production when using docker container
My WebSocket connection getting rejected from the Django Channels server deployed in AWS EC2. I am using Docker for server side which contains PostgreSQL and Redis also
WebSocket HANDSHAKING /ws/...
0
votes
1
answer
184
views
Django-Channels: Schedule jobs
I am working on an application similar to a quiz model. My requirement is,
The web socket server should be able to send time updates - say each question has 30 sec time, i need a scheduled job which ...
1
vote
1
answer
551
views
Django Channels. How to avoid the exception RuntimeError: Task got Future attached to a different loop?
I use Django Channels with channel_layers (RedisChannelLayer).
Using Channels I only need to get live messages from signals when post_save event happens.
I try to send a message from the signals.py ...
1
vote
1
answer
2k
views
Add Redis USER & PASS to Django channel layer
I'm trying to deploy my WebSocket project on the server (for example Heroku).
and I have a Redis server that has a USER & PASS.
I want to add this to my Django channel layer.
I need your help.
...
1
vote
1
answer
3k
views
Connect via a secure websocket WSS from Django project to Redis/Daphne
I am trying to connect a secure websocket WSS with Redis/Daphne from my Django-Project:
new WebSocket('wss://myproject.com:9002/ws/myChat/')
But it is not possible to connect. In the Browser-Console ...
0
votes
1
answer
467
views
how to delete a previous message if we get new message in django channels
I want to broadcast the only latest message of Django-channel layer in a specific room. Right now I have created specific room names for specific users. Now I just want to send them only latest ...
0
votes
0
answers
535
views
Websocket connection failed in Django and user matching query does not exist error
I am trying to create a one on one chat application using django channels,websockets and Redis.Tried implementing django channels from (https://youtu.be/RVH05S1qab8) but getting errors like this (from ...
2
votes
1
answer
791
views
Django Channels: How to pass incoming messages to external script which is running outside of django?
I have started a private project with Django and Channels to build a web-based UI to control the music player daemon (mpd) on raspberry pi. I know that there are other projects like Volumio or moode ...
0
votes
1
answer
516
views
Issue deploying Django/websocket/redis project to heroku
I have a Django project, which is running fine on my machine, that uses redis and a couple of workers to utilize websockets and give constantly updated subway times. It works fine on my machine, but I'...
-1
votes
1
answer
193
views
I want to update a DIV that will contain an image from a database PostgreSQL, without refreshing the entire page. Backend Django
I want to update a DIV that will contain an image, initially there is no image, the image is in a database (the images table will have a field with the image path) PostgreSQL. Every time the database ...