Debian Codegraph @

django/core/asgi.py

raw
1 import django
2 from django.core.handlers.asgi import ASGIHandler
3
4
5 def get_asgi_application():
6 """
7 The public interface to Django's ASGI support. Return an ASGI 3 callable.
8
9 Avoids making django.core.handlers.ASGIHandler a public API, in case the
10 internal implementation changes or moves in the future.
11 """
12 django.setup(set_prefix=False)
13 return ASGIHandler()