feat(chat): add models, views, WebSocket consumers, forms and URL config
This commit is contained in:
@@ -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()),
|
||||
]
|
||||
Reference in New Issue
Block a user