Django Book 翻译
菜单>:
TOC
返回
原文:
Note that attaching Django to a qualified URL (such as ``/admin/`` in this sections example) does not affect the Django URL parsing. Django works with the absolute URL (e.g., ``/admin/people/person/add/`` ), not a stripped version of the URL (e.g., ``/people/person/add/`` ). This means that your root URLconf should include the leading ``/admin/`` .
翻译:
请注意,把Diango绑定到的合格的URL(比如在本章例子中的 ``/admin/`` )并不会影响其对URL的解析。绝对路径对Django才是有效的(例如 ``/admin/people/person/add/`` ),而非截断后的URL(例如 ``/people/person/add/`` )。这意味着你的根URLconf必须包含前缀 ``/admin/`` 。
备注:
译者: