Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
92 views

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 ...
Brian Ketelboeter's user avatar
2 votes
1 answer
54 views

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 ...
user avatar
0 votes
0 answers
50 views

class SessionTakeOverAPIView(generics.GenericAPIView): """ This API view allows a human or AI to take over a chat session. The view handles session takeover validation, ...
Zahid Hassan's user avatar
0 votes
1 answer
63 views

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 = &...
Cordev87's user avatar
2 votes
1 answer
64 views

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 ...
Yuvraj's user avatar
  • 71
0 votes
0 answers
32 views

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 ...
Rodragon's user avatar
  • 167
0 votes
0 answers
20 views

'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 ...
Usama Javed's user avatar
0 votes
0 answers
36 views

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 ...
keisler-au's user avatar
1 vote
1 answer
106 views

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 ...
Akshat Jaiswal's user avatar
0 votes
1 answer
36 views

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/...
Jaime's user avatar
  • 121
0 votes
0 answers
72 views

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 ...
Steve Smith's user avatar
  • 1,089
0 votes
0 answers
241 views

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 ...
I'mSRJ's user avatar
  • 341
0 votes
0 answers
29 views

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 ...
Durgesh Kumar's user avatar
0 votes
0 answers
34 views

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. ...
Shakib Khan's user avatar
0 votes
0 answers
44 views

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 ...
fabvn's user avatar
  • 1
0 votes
0 answers
38 views

I am developing a dashboard using Django Channels and have implemented two WebSocket consumers—UserConsumer and RequestConsumer—to handle user authentication and requests, respectively. Problem After ...
Alireza Tabatabaeian's user avatar
0 votes
0 answers
58 views

I need to visualize data on Django-based webserver; which data is captured on serial port, like a stream. I use python **serial ** package to listen on the serial port, and I store these data in DB. I ...
Pali775's user avatar
  • 65
1 vote
0 answers
45 views

I have encountered the following error. The weird thing about this error is that it does not occur on my windows 11 computer, but it only occurs on the windows 11 computer of a colleague and on a ...
Bjorn's user avatar
  • 21
0 votes
0 answers
39 views

I'm trying to implement websocket and django channels. On frontend I have react and on backend django. I've installed channels and added it to INSTALLED_APPS in settings and I also added to settings....
Boky's user avatar
  • 12.1k
1 vote
1 answer
79 views

I'm running an websocket application through Django Channels and with Python 3.12. I have a ping mechanism to check if my users are still connected to my application where at a fixed time interval the ...
Pedro Silva's user avatar
0 votes
1 answer
27 views

I want to build a Django app with django-channels. But when I run the following command: daphne -b 0.0.0.0 -p 8010 paya.asgi:application It gives me this error: Apps aren't loaded yet. This error ...
arc py's user avatar
  • 1
1 vote
0 answers
58 views

I have been developing project. It uses django channels for websockets. And I meet a problem with sending ws messages to all device of the same account that is logged in. It is not a rare situation ...
Konstantinos's user avatar
1 vote
0 answers
60 views

I have been grinding on this from past 4 days and still couldn't get the websockets connected , it always shows Not found : ws/play/testroomcode This is my consumers.py: from channels.generic....
Muhammad Qasim Hassan's user avatar
0 votes
1 answer
184 views

I wrote these codes with Django Channels, but it gives me an error: These codes used to work correctly, but I don't know why they went wrong. def receive(self, text_data=None, bytes_data=None): ...
jabar majidi's user avatar
1 vote
0 answers
96 views

I am working on a Django project that uses Django Channels, Daphne, and Django Tenants for multitenancy and WebSocket communication. My project structure includes a project folder and several ...
Prasad Dixit's user avatar
1 vote
0 answers
70 views

consumers.py import asyncio import websockets import sounddevice as sd import vosk import queue from channels.generic.websocket import AsyncWebsocketConsumer model_path = "vosk_model/vosk-model-...
Dhruvil Antala's user avatar
0 votes
1 answer
50 views

I developed the application using Django and I used Django channels in it for messages. My websocket connections were working fine as soon as I was using my local db.sqlite3 but when I shifted to ...
Zain Ali's user avatar
0 votes
3 answers
113 views

I am writing a program to retrieve data and display it in a Django template. I have a function called match_algo() that takes a long time to run. I want to initially show 'Loading...........' on the ...
Hamdan Salih's user avatar
1 vote
0 answers
55 views

I have a system that has two forms of communication, one through http connections for specific tasks and another through websockets for tasks that require real-time communication. For the deployment I ...
fscoscia's user avatar
0 votes
1 answer
56 views

I'm working on a Django Channels project that requires Redis as the channel_layer. However, I've discovered that Redis is not natively supported on Windows, as it's primarily designed for Linux ...
Hamza Malik's user avatar
0 votes
0 answers
67 views

I'm struggling why still insist not being connected my WebSocket using Django, I've used laragon as Mysql and I just used my local database, and I just want to try first before saving to database it ...
Henry's user avatar
  • 167
0 votes
0 answers
60 views

So I'm working on a desktop based app that requires a socket to handle multiple authenticated clients with a Django channel, and clients should be authenticated by the server before opening the ...
Kaumudi Kalikar's user avatar
0 votes
1 answer
135 views

I am trying to create a simple live-server style test fixture for pytest for testing with django-channels. I came up with the simplest solution: import pytest @pytest.fixture(scope="function"...
dotz's user avatar
  • 1,034
1 vote
1 answer
525 views

What is the primary purpose of using Daphne with Django channels, if we can already do the ASGI configuration ourselves? What is the relationship between ASGI & Daphne server?
ZahRaF's user avatar
  • 55
1 vote
1 answer
256 views

With Django Channels, can you track which users are online or offline throughout your website? Should every page have a websocket connection? And when a user is online/offline, how can I show the user ...
Bahrom Najmiddinov's user avatar
5 votes
2 answers
395 views

I'm trying to set up a WebSocket connection using Django Channels in my Django project. However, I keep encountering an error when trying to connect from the frontend JavaScript. The error message in ...
user23470475's user avatar
0 votes
1 answer
138 views

import json from asgiref.sync import async_to_sync from channels.generic.websocket import WebsocketConsumer from .models import User, Connection, Message import logging from .serializers import ( ...
Dias Oralbekov's user avatar
0 votes
1 answer
73 views

IMO I think it is unable to find the route /ws/sc route but I dont understand why as I have linked it properly. The error is give when I try to establish a connection using postman Following is the ...
Krattza's user avatar
  • 41
0 votes
1 answer
55 views

i have a chat and Message Model. How can i sort my Chat with the creation_date of Message example:consider that i am in two chats(A and B): i want that everytime i receive a message from B so that B ...
Abol's user avatar
  • 51
0 votes
1 answer
50 views

So here is my front-end JS code for the keyHandler: let snippet = document.getElementById('snippet'); let remaining = document.getElementById('remaining'); let typed = document.getElementById('typed'...
Acno_Sama's user avatar
0 votes
2 answers
434 views

We have Django Channels coupled with uvicorn and azure redis instance. Our sentry is getting swamped with errors such as: Exception in ASGI application ssd.consumers in disconnect Error UNKNOWN ...
Mateusz Pydych's user avatar
0 votes
1 answer
691 views

I am trying to implement a Django Projects with multiple Apps, with multiple Consumers with different WebSocket routing patterns for each paths. Below is my working code, the code works, but is ...
eagele's user avatar
  • 84
0 votes
0 answers
81 views

We have a game which is running on our Django server. All calculations are made on the server. We use WebSocket to communicate the game data to our front-end clients, which do the rendering. But we ...
Pioupia's user avatar
  • 365
-1 votes
1 answer
772 views

Source: async def send_stock_updates(symbol): while True: stock_info = get_one_stock_info(symbol) # Send stock info over WebSocket channel_layer = get_channel_layer() ...
Dhruvil Antala's user avatar
0 votes
1 answer
85 views

asg.py import os from django.urls import re_path from channels.routing import ProtocolTypeRouter, URLRouter from channels.auth import AuthMiddlewareStack from channels.security.websocket import ...
kartik prajapati's user avatar
1 vote
1 answer
192 views

I have a Django application that serves both http and websocket requests. The application is working properly in local. I have configured gunicorn and daphne services in Nginx server but Daphne ...
k_k's user avatar
  • 11
1 vote
0 answers
253 views

I have a Django 5 application that use websockets using channels, and I'm trying to switch to AsyncConsumers to take advantage of asyncronous execution for I/O or external API tasks. I already wrote a ...
EdoG's user avatar
  • 355
1 vote
1 answer
338 views

I am deploying a Django app using an IIS server. In this Django app, I have implemented Django Channels to use websockets. Locally, everything is working fine with websocket connections, and I am able ...
Simple Sarfi's user avatar
0 votes
1 answer
93 views

In our Django project, we are using django channels with wss socket connection. While sending data via socket it is not working when deployed in AWS ec2 instance (Ubuntu nginx/1.18.0) proxy server. ...
GAYATHRI K's user avatar
0 votes
1 answer
232 views

This is my current configuration on my digital ocean droplet: Django, Django Channels, Daphne, Nginx, Gunicorn, HTTPS** I am stuck trying to configure Redis, Daphne, and Nginx. I used this walkthrough ...
CASH HOLLISTER's user avatar

1
2 3 4 5
32