the public interface to django s asgi support return an asgi 3 callable avoids making django core handlers asgihandler a public api in case the internal implementation changes or moves in the future the public interface to django s asgi support return an asgi 3 callable avoids making django core handlers asgihandler a public api in case the internal implementation changes or moves in the future
import django
from django.core.handlers.asgi import ASGIHandler


def get_asgi_application():
    
    django.setup(set_prefix=False)
    return ASGIHandler()