diff --git a/pylint_django/augmentations/__init__.py b/pylint_django/augmentations/__init__.py index e07f3700..473ebc80 100644 --- a/pylint_django/augmentations/__init__.py +++ b/pylint_django/augmentations/__init__.py @@ -743,7 +743,8 @@ def wrap_func(*args, **kwargs): def is_wsgi_application(node): frame = node.frame() return node.name == 'application' and isinstance(frame, Module) and \ - (frame.name == 'wsgi' or frame.path[0].endswith('wsgi.py') or frame.file.endswith('wsgi.py')) + (frame.name == 'asgi' or frame.path[0].endswith('asgi.py') or frame.file.endswith('asgi.py') or + frame.name == 'wsgi' or frame.path[0].endswith('wsgi.py') or frame.file.endswith('wsgi.py')) # Compat helpers