mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
remove fallback onto ASGIHandler
ASGIHandler is considered a django internal api with get_asgi_application being the public counterpart. get_asgi_application is also present since the introduction of django's asgi support so the ImportError should never occur anyways.
This commit is contained in:
parent
1ada7d14f7
commit
c1cb3874f2
1 changed files with 1 additions and 7 deletions
|
|
@ -2,13 +2,7 @@ from . import importer
|
|||
|
||||
importer.install()
|
||||
|
||||
try:
|
||||
from django.core.asgi import get_asgi_application
|
||||
except ImportError: # pragma: no cover
|
||||
from django.core.handlers.asgi import ASGIHandler
|
||||
|
||||
def get_asgi_application(): # noqa
|
||||
return ASGIHandler()
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
# this is just for the crazy ones
|
||||
application = get_asgi_application()
|
||||
|
|
|
|||
Loading…
Reference in a new issue