Django Book 翻译
菜单>:
TOC
返回
原文:
Well cover settings files in depth in Appendix E, but for now, have a look at the ``TEMPLATE_DIRS`` setting. This setting tells Djangos template-loading mechanism where to look for templates. By default, its an empty tuple. Pick a directory where youd like to store your templates and add it to ``TEMPLATE_DIRS`` , like so:
翻译:
我们将在附录 E 中详述配置文件,目前而言,仅需关注 ``TEMPLATE_DIRS`` 设置。该设置告诉 Django 的模板加载机制在哪里查找模板。缺省情况下,该设置的值是一个空的元组。选择一个目录用于存放模板并将其添加到 ``TEMPLATE_DIRS`` 中:
备注:
译者: