Django Book 翻译
菜单>:
TOC
返回
原文:
With ``TEMPLATE_DIRS`` set, the next step is to change the view code to use Djangos template-loading functionality rather than hard-coding the template paths. Returning to our ``current_datetime`` view, lets change it like so:
翻译:
完成 ``TEMPLATE_DIRS`` 设置后,下一步就是修改视图代码,让它使用 Django 模板加载功能而不是对模板路径硬编码。返回 ``current_datetime`` 视图,进行如下修改:
备注:
译者: