Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.
Questions tagged [daphne]
259 questions
5
votes
0 answers
How to architect a Group in Django Channels so that the 24 hour group_expiry time does not harm my communication?
In my infrastructure, I have a fleet of RPi devices that connect in to our webserver over a websocket. The websocket connection ideally remains open permanently and acts as the conduit where the server can push information down to the RPi device,…

David L Ernstrom
- 449
- 2
- 11
5
votes
0 answers
How to properly deploy django channels on windows?
I need to design a Django based project with WebSockets on Windows server. It seems like Django Channels is the most elegant and pythonic way to do such thing. However I have issue with finding a proper way to deploy Channels and/or Daphne on…

Mirdalan
- 51
- 1
- 5
5
votes
1 answer
Django Channels Server Configuration : Ubuntu. 404 on handshake
I'm trying to configure django channels to run on my ubuntu server(digital ocean).
I have redis-server running on port 6379.
Daphne is listening on endpoint unix:/home/mysite/sockets/mysite.sock with HTTP/2 support enabled(not sure that's required…

Piet van Leeuwen
- 319
- 3
- 12
4
votes
1 answer
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. when i try to import models in consumers.py on heroku
I run my django project on local which import models on consumers.py that work but when I deploy
on heroku error occurred
2021-11-06T10:22:14.039525+00:00 app[web.1]: Traceback (most recent call last):
2021-11-06T10:22:14.039542+00:00 app[web.1]: …

Aleck
- 111
- 1
- 1
- 5
4
votes
0 answers
How can I make my graphene-python API respond faster?
I've built a python/daphne/django/graphene server, and did everything I could to optimize my queries -- cached db queries in Redis so that they are basically free, and eventually came to find that even with a very small graph schema I still see a…

Tyler Gannon
- 872
- 6
- 19
4
votes
0 answers
Django deployment with Daphne
UPDATE:
It may be closed, remember to always check code copied from outside... The problem was with quote marks in Daphne Service
I want to deploy my Django app (Rest API + React on frontend) on AWS. I use nginx, gunicorn (for http handling) and…

Zaharskyy
- 99
- 3
- 10
4
votes
1 answer
How to deploy django channels with Apache and Daphne?
I am trying to deploy this django app which uses channels. I use Apache for regular HTTP requests and want to forward the web socket requests to Daphne.
Here are some of my important files:
apache config:
ServerAdmin…

dhsdshdhk
- 71
- 7
4
votes
1 answer
Do I need to change my normal Django code when introducing Django Channels?
Hello I am a beginner in the python world, so I am still trying to understand the care when working with ASGI. I read some tutorials and documentation, as well as watched some videos on youtube. However, I was unsure on some points.
I have a small…

Marlon Patrick
- 2,366
- 1
- 18
- 26
4
votes
1 answer
Django channels "ERROR Y of N channels over capacity in group subscriptions"
I'm doing load testing with my Django app providing GraphQL Subscriptions using Django channels and a redis Channels layer (django, graphene-django, channels, graphene-subscriptions, channels-redis). As ASGI server I'm using daphne right now. I use…

thinwybk
- 4,193
- 2
- 40
- 76
4
votes
1 answer
Transferring django settings to Environment Variables
I set the django project settings and added values to environment variables at my local ubuntu mashine and AWS Ubuntu server using .bashrc file at the root folder.
...
export DEBUG="True"
...
settings.py
...
SECRET_KEY =…

Jekson
- 2,892
- 8
- 44
- 79
4
votes
1 answer
Django not working with supervisor, getting [Errno 88] Socket operation on non-socket
I have made a server using Django REST framework and Django channels but I am unable to configure supervisor to run with it. My supervisor config is as…

hardik24
- 1,008
- 1
- 11
- 34
4
votes
0 answers
Server running with daphne starts to response with code 504 on any http request after passing uncertain time
I'm using django-channels2+daphne in production.
After uncertain time passed I got this error twice (after 2 and after 6 hours correspondingly), which involved 504 answer on any HTTP request. I have no idea how should I debug the problem. Using…

Vassily
- 5,263
- 4
- 33
- 63
4
votes
0 answers
How to configure apache for use with asgi
I have followed some the tutorial on setting up django channels and reading the docs on asgi as well, and been having difficulty, proxying my websocket requests to the necessary daphne listener.
Here is what daphne shows:
$ $ daphne -v2 -b 127.0.0.1…

David542
- 104,438
- 178
- 489
- 842
4
votes
1 answer
Django Channels 2.0 and Daphne: serving static and media files
I've searched some time, but couldn't find any tutorial on how to serve static and user uploaded (/media/) files in conjunction with Daphne. I've read that Apache doesn't support ASGI, that it may be possible to use Nginx, but nothing specific.
I've…

2080
- 1,223
- 1
- 14
- 37
4
votes
2 answers
How to serve static media with Daphne 2.0 on django
I'm new on daphne and I would like to know how to deploy a django app running on daphne, on ubuntu server. I already configured the app like the documentation said, and works fine, except that the static-files (js,css,imgs,etc) doesn't load. What I…

Darwin
- 328
- 3
- 13