root: fix asgi import order
This commit is contained in:
parent
54de5c981e
commit
f0e6d6f417
|
@ -1,5 +1,5 @@
|
|||
"""passbook sentry integration"""
|
||||
from aioredis.errors import ReplyError, ConnectionClosedError
|
||||
from aioredis.errors import ConnectionClosedError, ReplyError
|
||||
from billiard.exceptions import WorkerLostError
|
||||
from botocore.client import ClientError
|
||||
from celery.exceptions import CeleryError
|
||||
|
|
|
@ -18,13 +18,15 @@ from django.core.asgi import get_asgi_application
|
|||
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
|
||||
from structlog import get_logger
|
||||
|
||||
from passbook.root import websocket
|
||||
|
||||
# DJANGO_SETTINGS_MODULE is set in gunicorn.conf.py
|
||||
|
||||
defuse_stdlib()
|
||||
django.setup()
|
||||
|
||||
# pylint: disable=wrong-import-position
|
||||
from passbook.root import websocket # noqa # isort:skip
|
||||
|
||||
|
||||
# See https://github.com/encode/starlette/blob/master/starlette/types.py
|
||||
Scope = typing.MutableMapping[str, typing.Any]
|
||||
Message = typing.MutableMapping[str, typing.Any]
|
||||
|
|
Reference in a new issue