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/`` , which matches the first line in the ``mysite.blog.urls`` URLconf.
翻译:
* ``/weblog/2007/`` :在第一个URLconf中,模式 ``r'^weblog/'`` 被匹配。因为它是一个 ``include()`` ,Django将截掉所有匹配的文本,在这里是 ``'weblog/'`` 。URL剩余的部分是 ``2007/`` , 将在 ``mysite.blog.urls`` 这个URLconf的第一行中被匹配到。
备注:
译者: