def get_handler(self, *args, **options): wsgi = super().get_handler(*args, **options) return get_aio_application(wsgi=wsgi)
""" WSGI config for example 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/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from aiodjango import get_aio_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings") application = get_wsgi_application() app = get_aio_application(application)