newmediamonitoring1/polls/routing.py

7 lines
158 B
Python

from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/chat/(?P<room_name>[\w-]+)/$', consumers.ChatConsumer),
]