MCPcopy
hub / github.com/django/django / get_asgi_application

Function get_asgi_application

django/core/asgi.py:5–13  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

3
4
5def 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()

Calls 2

ASGIHandlerClass · 0.90
setupMethod · 0.45