Fixed linter for asgi.py

This commit is contained in:
Andrew Chen Wang 2020-04-07 00:23:31 -04:00 committed by GitHub
parent 2ecbf7ac34
commit 041751a359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/ https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
""" """
import os import os
import sys import sys
@ -30,8 +31,8 @@ django_application = get_asgi_application()
# from helloworld.asgi import HelloWorldApplication # from helloworld.asgi import HelloWorldApplication
# application = HelloWorldApplication(application) # application = HelloWorldApplication(application)
# Importing websocket application so that apps are loaded first # Import websocket application here, so apps from django_application are loaded first
from .websocket import websocket_application # noqa from .websocket import websocket_application # noqa isort:skip
async def application(scope, receive, send): async def application(scope, receive, send):