File indexing completed on 2026-04-25 08:29:11
0001 """
0002 ASGI config for swf_monitor_project project.
0003
0004 Exposes the ASGI callable as a module-level variable named ``application``.
0005
0006 Used by the uvicorn worker (see swf-monitor-mcp-asgi.service) that serves
0007 /swf-monitor/mcp/ behind Apache ProxyPass. Pure HTTP — no WebSocket consumers
0008 exist in this codebase; the Channels layer is used only for inter-process SSE
0009 fan-out inside the WSGI app (see docs/SSE_RELAY.md).
0010 """
0011
0012 import os
0013
0014 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'swf_monitor_project.settings')
0015
0016 import django
0017 from django.core.asgi import get_asgi_application
0018
0019 django.setup()
0020
0021 application = get_asgi_application()