Django Book 翻译
菜单>:
TOC
返回
原文:
Because this generic view and all the others is a regular view functions like any other, we can reuse it inside our own views. As an example, lets extend our about example to map URLs of the form ``/about/
/`` to statically rendered ``about/
.html`` . Well do this by first modifying the URLconf to point to a view function:
翻译:
因为通用视图都是标准的视图函数,我们可以在我们自己的视图中重用它。例如,我们扩展 about例子把映射的URL从 ``/about/
/`` 到一个静态渲染 ``about/
.html`` 。 我们首先修改URL配置到新的视图函数:
备注:
译者: