1,588 questions
0 votes
0 answers
92 views
Django channels tutorial issue [closed]
As I am following the Django channels tutorial (here is the link: https://channels.readthedocs.io/en/latest/tutorial/part_2.html ), I won't post any code except the specific problem I am having. In my ...
2 votes
1 answer
54 views
htmx web socket extension not rendering server messages
I'm using the below to render model initial counts on load. consumers.py: from channels.generic.websocket import WebsocketConsumer from django.template.loader import render_to_string from myapp.models ...
0 votes
0 answers
50 views
Django Channels WebSocket consumer prevents synchronous API from updating database
class SessionTakeOverAPIView(generics.GenericAPIView): """ This API view allows a human or AI to take over a chat session. The view handles session takeover validation, ...
0 votes
1 answer
63 views
Getting error message running Django server
I’m not able to run python manage.py runserver. I was able to run python manage.py migrate successfully. I even changed ASGI_APPLICATION = "MyProject.asgi.application" to ASGI_APPLICATION = &...
2 votes
1 answer
66 views
Should I Serve a React Build with Django or Use a Node.js Server if I am using Websockets with Django Channels?
I have a React application that I need to deploy, and I am considering two options for serving the production build: 1. Serving the React build directly with Django (e.g., using WhiteNoise or serving ...
0 votes
0 answers
32 views
Signals with Channels updating one value at the time
I'm using a m2m signal that triggers django channels, to create a realtime update on a value. It works fine but if I go to the admin and update more than one at the same time (having multiple tabs ...
0 votes
0 answers
20 views
Django Channels WebSocket: Messages Not Instantly Received on Login Without Refresh
'm using Django Channels, WebSockets, and Redis to build a real-time chat system. The problem is: If a user sends a message while the admin is logged out, the admin sometimes receives it immediately ...
0 votes
0 answers
36 views
How to interact with Redis db from inside Django AsyncWebsocketConsumer
I am wanting to use Redis queues to store updates that are sent to the Websocket, so that disconnected players (offline) who become reconnected can then be sent the queued messages. I am using the ...
1 vote
1 answer
106 views
WebSocket Streaming Not Working in Django + Next.js — Only Getting First and Final Message
I'm building a ai chat app with Django (Channels) for the backend and Next.js for the frontend. The goal is to stream AI-generated responses chunk by chunk over a WebSocket connection — similar to how ...
0 votes
1 answer
36 views
Running simple async chatroom. Works fine in dev. Fails in Heroku
I've made an async chatroom app for a django website based on the excellent tutorial provided by django on django channels with daphne and redis. https://channels.readthedocs.io/en/stable/tutorial/...
0 votes
0 answers
72 views
How Can I Get Django Global Notifications Via Channels To Work?
I have spent the last month or so on and off trying to get the django channels notification to work. I can't get notifications to work but the chat works as expected. Here is my code... Consumers.py ...
0 votes
0 answers
244 views
Switching from WSGI to ASGI (Gunicorn + Uvicorn) in Django Production – Site Not Loading
I recently built a Django application using Django Channels for WebSocket support. My asgi.py is set up for handling both HTTP and WebSocket connections, and everything works perfectly in development ...
0 votes
0 answers
29 views
collaborative plateform Real time cursor problem in web socket
My problem is a cursor position in my project. When the web socket open and at setTimeout send code to the another connection room. then my cursor position and text is not showing currently and my ...
0 votes
0 answers
34 views
Having problem sending data between 2 scope classes in Django Channels
I am using django channels for the first time and can't wrap my head around something. Here is what I am trying to achieve; I want to create a new message in ChatConsumer which is all good and fine. ...
0 votes
0 answers
44 views
Why is my Celery task stuttering when sending frequent progress updates with Django Channels?
I have a loop in a Django application where I process a list of records and send periodic progress updates to the frontend. I'm using async_to_sync from Django Channels to send messages through the ...