You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from django.urls import path, re_path
|
|
|
|
from . import views
|
|
from . import consumers
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='chat')
|
|
]
|
|
|
|
websocket_urlpatterns = [
|
|
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi ()),
|
|
]
|