All Questions
31
questions
0
votes
1
answer
111
views
AttributeError: 'set' object has no attribute 'decode'
I started learning Django for a school project and I'm doing a chat project using websocket server, but when reloading the app I get this error even tho I'm not calling decode() anywhere. I'm using ...
0
votes
0
answers
27
views
All messages sent at once at the end of all iterations django layers Django-channels
I want to send messages to client side by websocket one by one. Instead they are sent at the end of all iterations at once. I use AsyncWebsocketConsumer, so it should be fine. Another important things ...
0
votes
0
answers
131
views
Error loading ASGI app. Could not import module "ChatApp.asgi".(Render..com)
Source code link : https://github.com/ab-h-i-n/ChatApp_Django
The app is working perfectly and loading websockets in localhost. But when i try to deploy it on render.com it showing this error in log.
`...
4
votes
3
answers
7k
views
Websocket connection not working in Django Channels ('WebSocket connection to 'ws://localhost:8000/ws/board/7/' failed:')
I'm trying to get a websocket running for a Django project I'm working on, but I can't get the websocket to connect, which is strange since I copied the example chat application from. the channels ...
0
votes
1
answer
1k
views
django channels deploying with daphne error Requested setting INSTALLED_APPS, but settings are not configured
Hello I'm following this tutorial https://github.com/mitchtabian/HOWTO-django-channels-daphne
to deploy mn django channels app and I'm having problem with starting the daphne.
I created the daphne....
0
votes
0
answers
542
views
WebSocket not connecting |. Django Channels | WebSocket
I am using the WebsocketConsumer consumer and when I disconnect the websocket connection it gives the below error.
Also when I have already one open connection and when I try to create a connection ...
0
votes
1
answer
2k
views
Django Channels Consumer Not Connecting to websocket
i created a websocket with javascripts on the client side...then followed up with setting up my project to handle webocket connections as follows(following the official django-channels documentation). ...
0
votes
1
answer
621
views
How to trigger notification sound when onmessage event occur using django channels?
I have created a chat website using django channels and want to play some audio as notification alert when any message was send / received between users.
can anyone could help me in resolving it ?
0
votes
0
answers
645
views
How to send different message on same group for different users in django channels
I am trying to build a real-time ticket reservation app so I want to display the real time seat booking status to users.
For example; I have user1 and user2 connected to a group reservation-1
Now when ...
2
votes
1
answer
991
views
Django Channels Private Chat server
I am new to Django channels and the ASGI application itself, so I am a bit confused about how to go while building a private chatting app.
There isn't much tutorial for private chats all are for chat ...
1
vote
0
answers
231
views
How to stop Django from hanging after page refresh using channels?
Using channels it connects properly when the page loads the first time but then hangs on refresh. Not sure why this is happening. I've placed the code below to see what might be happening?
# index....
9
votes
3
answers
14k
views
Django channel Error "took too long to shut down and was killed."
I am getting this error on my console log, and on form submit it keeps loading does not post data to the server.
/home/Python/Working/Benutzerverwaltung/env/lib/python3.6/site-packages/channels/...
1
vote
1
answer
2k
views
Django channels socket not connecting to consumer
I'm new to socket programming & I'm kindof stuck with an issue here. My client is not connecting to consumer.
JavaScript Code
<script>
// websocket scripts
var socket = new WebSocket(...
0
votes
1
answer
901
views
django channels share instance variable between group users
I am developing a online game on django, for real time connection I am using channels but unfortunately for every user I have a separate instance of game.
What I want is, for first user I start the ...
0
votes
1
answer
737
views
Django Channels and Web Socket with 3rd party database
I want to create one Dashboard to show users count for my ML project where I'm updating users count in MongoDB on friction of seconds. I need to show that count in dashboard with real time sockets.
...