feat(chat): add models, views, WebSocket consumers, forms and URL config

This commit is contained in:
2026-04-28 12:36:36 +02:00
parent 9295617d8e
commit 57950e73da
9 changed files with 526 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
from django.urls import re_path
from chat import consumers
websocket_urlpatterns = [
re_path(r'ws/channel/(?P<channel_id>\d+)/$', consumers.ChannelConsumer.as_asgi()),
re_path(r'ws/dm/(?P<username>[\w.@+-]+)/$', consumers.DMConsumer.as_asgi()),
]