The problem:
ValueError generic ASGI request Unhandled
Django can only handle ASGI/HTTP connections, not lifespan.
I'm using:
Django==3.2.6
gunicorn==20.1.0
uvicorn==0.20.0
docker CMD: gunicorn --bind 0.0.0.0:9999 --workers 1 --threads 8 --timeout 0 erp.asgi:application -k uvicorn.workers.UvicornWorker
The server works fine
need to make sure if solution
uvicorn --lifespan off
has any side-effects
To close this warning:
Tested on my Django 3.2.6, Turning the Lifespan protocol implementation off works
Untill Django 4.2.x django.core.asgi only handle http