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