mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-02-02 12:43:17 +08:00
13 lines
234 B
Python
13 lines
234 B
Python
"""
|
|
WebSocket 路由配置
|
|
"""
|
|
|
|
from django.urls import path
|
|
|
|
# 延迟导入,避免循环依赖
|
|
from .consumers import NotificationConsumer
|
|
|
|
websocket_urlpatterns = [
|
|
path('ws/notifications/', NotificationConsumer.as_asgi()),
|
|
]
|