It looks like gunicorn is used for wsgi applications while dpahne is used for asgi and also wsgi applications. Here you have to decide how you want your code to look like ...