routing.py 163 B

123456
  1. from django.urls import re_path
  2. from .consumers import KnockConsumer
  3. websocket_urlpatterns = [
  4. re_path(r'ws/(?P<username>\w+)/$', KnockConsumer.as_asgi()),
  5. ]