mirror of
https://github.com/django/daphne.git
synced 2025-07-14 18:02:17 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
aaefa46cd7
commit
78fd820764
|
@ -1,12 +1,13 @@
|
||||||
# Import the server here to ensure the reactor is installed very early on in case other
|
# Import the server here to ensure the reactor is installed very early on in case other
|
||||||
# packages import twisted.internet.reactor (e.g. raven does this).
|
# packages import twisted.internet.reactor (e.g. raven does this).
|
||||||
import daphne.server # noqa: F401
|
|
||||||
|
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
from django.core import checks
|
from django.core import checks
|
||||||
|
|
||||||
|
import daphne.server # noqa: F401
|
||||||
|
|
||||||
from .checks import check_daphne_installed
|
from .checks import check_daphne_installed
|
||||||
|
|
||||||
|
|
||||||
class DaphneConfig(AppConfig):
|
class DaphneConfig(AppConfig):
|
||||||
name = "daphne"
|
name = "daphne"
|
||||||
verbose_name = "Daphne"
|
verbose_name = "Daphne"
|
||||||
|
|
|
@ -33,7 +33,7 @@ def get_default_application():
|
||||||
value = getattr(module, name)
|
value = getattr(module, name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
"Cannot find {!r} in ASGI_APPLICATION module {}".format(name, path)
|
f"Cannot find {name!r} in ASGI_APPLICATION module {path}"
|
||||||
)
|
)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user