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.
()
| 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() |