Django Book 翻译
菜单>:
TOC
返回
原文:
Here, both the regular expression and the extra dictionary include an ``id`` . The hard-coded ``id`` gets precedence. That means any request (e.g., ``/mydata/2/`` or ``/mydata/432432/`` ) will be treated as if ``id`` is set to ``3`` , regardless of the value captured in the URL.
翻译:
这里,正则表达式和额外字典都包含了一个 ``id`` 。硬编码的(额外字典的) ``id`` 将优先使用。就是说任何请求(比如, ``/mydata/2/`` 或者 ``/mydata/432432/`` )都会作 ``id`` 设置为 ``3`` 对待,不管URL里面能捕捉到什么样的值。
备注:
译者: