Open simkimsia opened 1 year ago
Not tested, but guessing from the documentation is should be:
path('pre_quotations_bulk_create_requests/(?P
django_eventstream.urls.urlpatterns is a list of Pathes, and that's what URLRouter expects
Ah, I just realized the examples in the routes section use the style expected by urls.py
which only works in WSGI mode.
The examples need to be slightly adjusted for use with ASGI. Namely, the second argument to the path
should be URLRouter(django_eventstream.routing.urlpatterns)
, and that value needs to be wrapped in AuthMiddlewareStack
if you want to handle auth.
this is my asgi.py
this is my routing.py
my requirements
What is my objective?
i want to use SSE for
/pre_quotations_bulk_create_requests/(?P<pk>\d+)/events/
What's the issue?
i cannot use include as per the code snippet at https://github.com/fanout/django-eventstream#routes-and-channel-selection
i get a
so i change to
now i get a
What do I do now?