diff options
Diffstat (limited to 'chat/routing.py')
| -rw-r--r-- | chat/routing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chat/routing.py b/chat/routing.py index 9f08ddf..0de511e 100644 --- a/chat/routing.py +++ b/chat/routing.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | from django.urls import re_path | 1 | from django.urls import re_path, path |
| 2 | 2 | ||
| 3 | from . import consumers | 3 | from . import consumers |
| 4 | 4 | ||
| 5 | websocket_urlpatterns = [ | 5 | websocket_urlpatterns = [ |
| 6 | re_path(r"ws/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer.as_asgi()), | 6 | path("ws/chat/<str:room_name>/", consumers.ChatConsumer.as_asgi()), |
| 7 | ] | 7 | ] |
