From c36a33ab969584a49bd9f9f041dc8e8da887eccb Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Mar 2016 13:56:42 -0300 Subject: [PATCH] Improve wording about regex appending in routing docs --- docs/getting-started.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 44b2126..fe1ffc0 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -492,8 +492,9 @@ routing our chat from above:: include(http_routing), ] -When Channels loads this routing, it appends any match keys together, so the -``path`` match becomes ``^/chat/(?P[a-zA-Z0-9_]+)/$``. If the include match +When Channels loads this routing, it appends any match keys together and +flattens out the routing, so the ``path`` match for ``chat_connect`` becomes +``^/chat/(?P[a-zA-Z0-9_]+)/$``. If the include match or the route match doesn't have the ``^`` character, it will refuse to append them and error (you can still have matches without ``^`` in either, you just can't ask Channels to combine them).