Przeglądaj źródła

auto commit

master
jfinn 2 lat temu
rodzic
commit
e1f3e6b93c
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      wsps/routing.py

+ 8
- 0
wsps/routing.py Wyświetl plik

1
+# chat/routing.py
2
+from django.urls import re_path
3
+
4
+from . import consumers
5
+
6
+websocket_urlpatterns = [
7
+    re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
8
+]

Ładowanie…
Anuluj
Zapisz