*Update: *I feel like I'm getting closer to solving this issue, but still
can't understand one thing.
If I have my routing file like this:
fb_routing = [
route("websocket.connect", consumers.connect_face),
route("websocket.receive", consumers.get_face),
route("websocket.disconnect", consumers.disconnect_face)
]
# notice each terminating "/$" at the end of each route
home_routing = [
route('websocket.connect', consumers.ws_connect, path=r'^/$'),
route('websocket.disconnect', consumers.ws_disconnect, path=r'^/$'),
route('websocket.receive', consumers.ws_receive, path=r'^/$'),
]
channel_routing = [
include(home_routing, path=r'^/$'),
include(fb_routing, path=r'/import/$'),
]
However, if my routing.py looks like this:
fb_routing = [
route("websocket.connect", consumers.connect_face),
route("websocket.receive", consumers.get_face),
route("websocket.disconnect", consumers.disconnect_face)
]
home_routing = [
route('websocket.connect', consumers.ws_connect),
route('websocket.disconnect', consumers.ws_disconnect),
route('websocket.receive', consumers.ws_receive),
]
channel_routing = [
# but shouldn't they *already* get terminated here?
include(home_routing, path=r'^/$'),
include(fb_routing, path=r'^/import/$'),
]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/74e701bf-05cb-4188-a143-37095008d255%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.