Django Book 翻译
菜单>:
TOC
返回
原文:
When a request comes insay, a request to the URL ``/time/`` Django loads the URLconf pointed to by the ``ROOT_URLCONF`` setting. Then it checks each of the URLpatterns in that URLconf in order, comparing the requested URL with the patterns one at a time, until it finds one that matches. When it finds one that matches, it calls the view function associated with that pattern, passing an ``HttpRequest`` object as the first parameter to the function. (More on ``HttpRequest`` later.)
翻译:
当访问 URL ``/time/`` 时,Django 根据 ``ROOT_URLCONF`` 的设置装载 URLconf 。 然后按顺序逐个匹配URLconf里的URLpatterns,直到找到一个匹配的。当找到这个匹配 的URLpatterns就调用相关联的view函数,并把 ``HttpRequest`` 对象作为第一个参数。 (稍后再给出 ``HttpRequest`` 的更多信息)
备注:
译者: