Skip to content

Commit e210626

Browse files
committed
Fix AppsNotReady error in test project.
1 parent 5240169 commit e210626

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ exclude =
5454
exclude = venv/*,tox/*,docs/*,testproject/*,build/*
5555
max-line-length = 88
5656
extend-ignore = E203, W503
57+
per-file-ignores =
58+
tests/sample_project/config/asgi.py:E402
5759

5860
[isort]
5961
profile = black

tests/sample_project/config/asgi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from django.core.asgi import get_asgi_application
1111
from django.urls import path
1212

13+
application = get_asgi_application()
14+
1315
from channels.auth import AuthMiddlewareStack
1416
from channels.routing import ProtocolTypeRouter, URLRouter
1517
from channels.security.websocket import AllowedHostsOriginValidator
@@ -30,6 +32,6 @@
3032
)
3133
)
3234
),
33-
"http": get_asgi_application(),
35+
"http": application,
3436
}
3537
)

0 commit comments

Comments
 (0)