- I have a django app
- I using this [docker] (https://github.com/tiangolo/uvicorn-gunicorn-docker) for production deployment
when I run the app using:
gunicorn --log-level debug --workers 3 myapp.asgi:application --worker-class uvicorn.workers.UvicornWorker
I see the warning
ASGI 'lifespan' protocol appears unsupported.
- after reading here I understand that django do not support, but is this have any effect on my app? or where should the effect be?
- My app is using sync endpoints, for example:
class MyViewSet(viewsets.ModelViewSet):
queryset = My.objects.all()
serializer_class = MySerializer
is by running using ASGI the call to the database would be async?
- I don't use any web sockets
- I can see online many version for the asgi.py file, with manny different middleware and the
django.setup()
keyword, where can I find a documentation about the use cases?