Questions tagged [daphne]

Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI, and developed to power Django Channels.

259 questions
1
vote
1 answer

Docker port mapping. Running daphne in container

I am a little bit confused. I am launching daphne locally this way: daphne common.asgi:channel_layer --port 8338 and everything is "ok" with it. When I use curl -v 127.0.0.1:8338 get the following output * Rebuilt URL to: 127.0.0.1:8338/ * Trying…
Snobby
  • 1,067
  • 3
  • 18
  • 38
1
vote
1 answer

Static files serving issue using Django channels

I am trying my hands on this example for websockets in Django, https://github.com/jacobian/channels-example as I have intention to use it my production application as well which is hosted in Heroku, and using Whitenoise there. So, after cloning the…
Maverick
  • 2,738
  • 24
  • 91
  • 157
1
vote
1 answer

Proxy redirecting websockets and http to the same (unix) socket

I've made a little nginx conf to redirect trafic to a unix socket listened by a daphne server (server used for django). According to the documentation : If you use Daphne for all traffic, it auto-negotiates between HTTP and WebSocket, so there’s…
vmonteco
  • 14,136
  • 15
  • 55
  • 86
0
votes
0 answers

Django daphne service service is not working while deploying on aws ec2 an error Requested setting INSTALLED_APPS, but settings are not configured

Aug 06 11:11:00 ip-172-31-12-99 python[92893]: File "/home/ubuntu/nextshelters/env/lib/python3.10/site-packages/django/conf/init.py", line 72, in _setup Aug 06 11:11:00 ip-172-31-12-99 python[92893]: raise ImproperlyConfigured( Aug 06 11:11:00…
0
votes
0 answers

Django app page with Daphne asgi won't load after Google Cloud App Engine deployment

Receiving this error message ModuleNotFoundError: No module named 'trip_tracker_project' in the Google Cloud App Engine logs when trying to launch the application after deployment. There may be an issue with the asgi daphne spin up (the app uses…
0
votes
0 answers

Supervisord setup for daphne and nginx only shows nginx welcome page

Hi there previously I have a django uwsgi app deployed on a ubuntu server. now new features added: channels, daphne. hence we need to deploy the new project using nginx to serve static files daphne to serve dynamic django views supervisord to…
Weilory
  • 2,621
  • 19
  • 35
0
votes
0 answers

ASGI servers does not start the server, instead gets stuck after giving the command to start the server

I am trying to run an Django ASGI application, using ASGI web servers like Daphe, Uvicorn, Hypercorn on my windows machine. But, the server only starts with Hypercorn. I am not able to start the server with the other two. The commands I gave…
0
votes
0 answers

Run Python asgi on IIS

tell me please how to properly configure the web config to run asgi on the iis server? so, now i have next web.config
0
votes
0 answers

Django sockets don't work in production, when deployed in Azure Web App

Python version 3.10 Recently my websockets stopped working when deployed in Azure. I am using Python Django with Daphne. When run locally everything works fine also if ssh into the web server and run another instance of Django, I can locally also…
aproxje
  • 1
  • 1
0
votes
0 answers

`django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured` when I try to start the daphne

I have a django project. When I start runserver - everything is fine. But if I try to start the daphne asynchronous server (daphne -p 8001 config.asgi:application), I get an error django.core.exceptions.ImproperlyConfigured: Requested setting…
0
votes
0 answers

ModuleNotFoundError: No module named 'daphnedjango'

I am trying to add web sockets to my Django application. From my existing project, I starting following the Chat app found in the Daphne documentation. I installed Daphne and Channels, add daphne to the top of Installed Apps and reconfigure asgi.py…
bdempe
  • 308
  • 2
  • 9
0
votes
0 answers

What does it mean Redis URL must specify one of the following schemes (redis://, rediss://, unix://)

I am getting this error message after a file upload is completed and the redirect is meant to take place. Redis URL must specify one of the following schemes (redis://, rediss://, unix://) I am not sure what the problem is as i am extremely new to…
0
votes
1 answer

Websocket connection failed in production. (Nginx, Gunicorn, Daphne) (Django/React)

I am trying to deploy my Django Rest Framework application to production. I have my own server running Debian. I am not new to deploying DRF and React applications and the WSGI part of the application works fine with Gunicorn. The problem I can't…
tumpa02
  • 36
  • 1
0
votes
1 answer

Django Daphne - Secure websocket connection fails

I have setup my Django server to run on https mode and the API calls are also working. I have also configured Daphne which is starting without any problems. However, when I try to open a secure websocket connection using wss, it fails. It would be…
Neo
  • 49
  • 12
0
votes
2 answers

Django daphne: Apps aren't loaded yet

When i try to run daphne -p 8001 messanger.asgi:application I get this error: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. If i run server without daphne, I get this error: Listen failure: Couldn't listen on 127.0.0.1:8000:…