ejemplo-de-chat-con-Django/apps/chat/routing.py
Andros Fenollosa 75de13e7a2 add
2020-11-15 10:52:18 +01:00

8 lines
156 B
Python

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