Questions tagged [django-channels]

Should be used for the django-channels project that brings asynchrony (WebSockets and HTTP2) to django.

Channels is a project that takes Django and extends its abilities beyond HTTP - to handle WebSockets, chat protocols, IoT protocols, and more.

Documentation

1583 questions
0
votes
1 answer

Allow New Consumer To See Existing Data in Django Channels Layer

Im using Django Channels (and loving it) but new consumers to the layer only see data from the time they join into the future. Is there a way for new consumers to see previous data belonging to the layer?
redress
  • 1,399
  • 4
  • 20
  • 34
0
votes
0 answers

Heroku dynos: can I technically use less dynos in my Django setup?

I'm using the following with my Django application: Django channels Celery with both regular and periodic tasks Deployed on Heroku My Procfile looks like this: web: daphne artist_notify.asgi:channel_layer --port $PORT --bind 0.0.0.0 -v2 worker:…
zerohedge
  • 3,185
  • 4
  • 28
  • 63
0
votes
4 answers

Django Channels 2 websockets multiple AuthMiddlewareStacks

Trying to make some app using websockets with django channels. I have 2 websocket clients - one is a web interface/js app, other - python application. I want a different authorization requirements for them (their consumers) (preferably a way to use…
user1935987
  • 3,136
  • 9
  • 56
  • 108
0
votes
0 answers

missing shutdown() traceback when TLS timeout only for HTTP/2

I ran into this issue during my testing of django-channels and daphne (but the issue is not exclusive to them). --- --- File "/Users/****/lib/python3.6/site-packages/twisted/internet/base.py", line 896, in runUntilCurrent …
notorious.no
  • 4,919
  • 3
  • 20
  • 34
0
votes
1 answer

Django Channels: Connect to Sockets

I'm setting up Django Channels and so far this is the code I've put up. #routing.py from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter import routing as route from django.conf.urls import…
Sam B.
  • 2,703
  • 8
  • 40
  • 78
0
votes
0 answers

Django channels with Python background tasks

I am writing a Python based application (CLI Back End) which does telnet to some network components and gets some data. It saves the data in SQLite db. For this application I am writing Django based frond end. Which will start the CLI app and…
0
votes
1 answer

Django Channels - Client receives only one message when Group.send() is called in a loop in consumers.py

I have built a Django app which runs automated testing. I collect the inputs from the user, as to what all tests need to be run and when the user clicks on submit button, the tests run for a few hours to a couple of days (depending on the number of…
hem
  • 3
  • 2
0
votes
1 answer

How to add members to same chat room in Django Channels 2.1.1 using multichat example

Using Django Channels 2.1.1 and Django 2.0, I'm building a site where a customer presses a button and is brought into a chatroom with one staff in it. I'm beginning from Andrew Godwin's multichat example. In short: I can't figure out how to properly…
nusantara
  • 1,109
  • 1
  • 15
  • 38
0
votes
1 answer

Slow django-channels update - redis

I went trough the tutorial for the new django-channels setup for 2.0 and have a problem with speed. It takes several seconds for me to send a message trough the chat to see that very same message appear back on my client. I am using the windows…
0
votes
1 answer

How to get nginx to serve django admin css files from different port

So I know this question has been asked, but I am not sure if my initial setup is right. I have nginx running to serve my angular 5 files. I have daphne running to serve my channels and django code. But I am not sure how to get my static files from…
Dale
  • 352
  • 2
  • 15
0
votes
1 answer

Error with channels and celery

I'm trying to create a chat that when it meets the condition of "hola" is sent by a task in celery. However, when it enters the condition the status is not updated, can someone help me? I leave my code, please help! Mi error is: raise OSError(err,…
user9548476
0
votes
1 answer

Not Found "/lobby/" django-channels routing error

routing.py from channels import include, route from chat import consumers from . import game_consumers channel_routing = [ #game routing route('websocket.connect', game_consumers.ws_connect_lobby, path=r"^/lobby/$"), …
Michael
  • 763
  • 1
  • 10
  • 25
0
votes
1 answer

trying to connect to web container from celery container in docker

I have a django channels container and a celery worker and I'm trying to connect to my django channels container inside the celery container, however, I'm finding it difficulty to connect. I have a django server running on http://127.0.0.1:8000/.…
alpha787
  • 171
  • 4
  • 10
0
votes
2 answers

Link Django-cookie sessionId to Channels 2.02 connection?

Thank you all for reading my first post. Using Django 2.02, Django-channels 2.02. I wish to store informations that get send from the frontend to the backend into Django session store. My problem is that the Django-channels session scope only seems…
0
votes
1 answer

Django Channels Invalid Syntax

I am trying to work with Django Channels. Every time I try to run manage.py, I get the following error: File "/usr/local/lib/python2.7/dist-packages/daphne/server.py", line 192 async def handle_reply(self, protocol, message): …
Sharath Sriram
  • 160
  • 2
  • 5
1 2 3
99
100