1

The application I developed using Django includes WSGI and ASGI applications together. What kind of way do I need to follow while deploying this application? In general, when I searched on the internet, I could not find anythig that deployed WSGI and ASGI applications together. what is a way to accomplish this?

  • For WSGI you can use this code while deploying """ WSGI config for your project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') application = get_wsgi_application() and for ASGI you can follow this link https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ – Sakib ovi Aug 25 '21 at 09:16

0 Answers0