from django.urls import re_path from .consumers import KnockConsumer websocket_urlpatterns = [ re_path(r'ws/(?P\w+)/$', KnockConsumer.as_asgi()), ]