Django Book 翻译
菜单>:
TOC
返回
原文:
Theres an important gotcha here: the regular expressions in this example that point to an ``include()`` do *not* have a ``$`` (end-of-string match character) but *do* include a trailing slash. Whenever Django encounters ``include()`` , it chops off whatever part of the URL matched up to that point and sends the remaining string to the included URLconf for further processing.
翻译:
这里有个很重要的地方:例子中的指向 ``include()`` 的正则表达式并 *不* 包含一个 ``$`` (字符串结尾匹配符),但是包含了一个斜杆。每当Django遇到 ``include()`` 时,它将截断匹配的URL,并把剩余的字符串发往包含的URLconf作进一步处理。
备注:
译者: