• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gcivil-nyu-org / Wednesday-Fall2023-Team-6 / 531

28 Nov 2023 06:14AM UTC coverage: 93.624% (-2.3%) from 95.922%
531

push

travis-pro

Hao-191
Merge remote-tracking branch 'origin/dev_fix' into google_map

1865 of 1992 relevant lines covered (93.62%)

0.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/MediLink/asgi.py
1
"""
2
ASGI config for MediLink project.
3

4
It exposes the ASGI callable as a module-level variable named ``application``.
5

6
For more information on this file, see
7
https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
8
"""
9

10
import os
×
11
import django
×
12

13
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MediLink.settings")
×
14
django.setup()
×
15
from django.core.asgi import get_asgi_application
×
16
from channels.auth import AuthMiddlewareStack
×
17
from channels.routing import ProtocolTypeRouter, URLRouter
×
18

19
django_asgi_app = get_asgi_application()
×
20
import chat.routing
×
21

22
# Initialize Django ASGI application early to ensure the AppRegistry
23
# is populated before importing code that may import ORM models.
24

25
application = ProtocolTypeRouter(
×
26
    {
27
        "http": get_asgi_application(),
28
        "websocket": AuthMiddlewareStack(URLRouter(chat.routing.websocket_urlpatterns)),
29
    }
30
)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc