root: fix asgi import order

This commit is contained in:
Jens Langhammer 2020-11-11 22:35:40 +01:00
parent 54de5c981e
commit f0e6d6f417
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
"""passbook sentry integration""" """passbook sentry integration"""
from aioredis.errors import ReplyError, ConnectionClosedError from aioredis.errors import ConnectionClosedError, ReplyError
from billiard.exceptions import WorkerLostError from billiard.exceptions import WorkerLostError
from botocore.client import ClientError from botocore.client import ClientError
from celery.exceptions import CeleryError from celery.exceptions import CeleryError

View File

@ -18,13 +18,15 @@ from django.core.asgi import get_asgi_application
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
from structlog import get_logger from structlog import get_logger
from passbook.root import websocket
# DJANGO_SETTINGS_MODULE is set in gunicorn.conf.py # DJANGO_SETTINGS_MODULE is set in gunicorn.conf.py
defuse_stdlib() defuse_stdlib()
django.setup() 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 # See https://github.com/encode/starlette/blob/master/starlette/types.py
Scope = typing.MutableMapping[str, typing.Any] Scope = typing.MutableMapping[str, typing.Any]
Message = typing.MutableMapping[str, typing.Any] Message = typing.MutableMapping[str, typing.Any]