Improve wording about regex appending in routing docs

This commit is contained in:
Andrew Godwin 2016-03-20 13:56:42 -03:00
parent d3da7054b4
commit c36a33ab96

View File

@ -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<room>[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<room>[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).