Django Book 翻译
菜单>:
TOC
返回
原文:
* ``/weblog//2007/`` : In the first URLconf, the pattern ``r'^weblog/'`` matches. Because it is an ``include()`` , Django strips all the matching text, which is ``'weblog/'`` in this case. The remaining part of the URL is ``/2007/`` (with a leading slash), which does not match any of the lines in the ``mysite.blog.urls`` URLconf.
翻译:
* ``/weblog//2007/`` :在第一个URLconf中,模式 ``r'^weblog/'`` 被匹配。因为它是一个 ``include()`` ,Django将截掉所有匹配的文本,在这里是 ``'weblog/'`` 。URL剩余的部分是 ``/2007/`` (开头有一个斜杠),将不会匹配 ``mysite.blog.urls`` 中的任何URLconf。
备注:
译者: