Django Book 翻译
菜单>:
TOC
返回
原文:
In this example, were using the function ``django.template.loader.get_template()`` rather than loading the template from the filesystem manually. The ``get_template()`` function takes a template name as its argument, figures out where the template lives on the filesystem, opens that file, and returns a compiled ``Template`` object.
翻译:
此范例中,我们使用了函数 ``django.template.loader.get_template()`` ,而不是手动从文件系统加载模板。该 ``get_template()`` 函数以模板名称为参数,在文件系统中找出模块的位置,打开文件并返回一个编译好的 ``Template`` 对象。
备注:
译者: