Django Book 翻译
菜单>:
TOC
返回
原文:
If it finds a match, it loads the flatpages template or ``flatpages/default.html`` if the flatpage has not specified a custom template. It passes that template a single context variable, ``flatpage`` , which is the flatpage object. It uses ``RequestContext`` in rendering the template.
翻译:
如果找到一个匹配项,它将载入该简单页面的模板(如果没有指定的话,将使用默认模板 ``flatpages/default.html`` )。同时,它把一个简单的上下文变量—— ``flatpage`` (一个简单页面对象)传递给模板。在模板解析过程中,它实际用的是 ``RequestContext`` 。
备注:
译者: