Django Book 翻译
菜单>:
TOC
返回
原文:
* In the syndication framework (see Chapter 11), the templates for ``title`` and ``description`` automatically have access to a variable ``{{ site }}`` , which is the ``Site`` object representing the current site. Also, the hook for providing item URLs will use the ``domain`` from the current ``Site`` object if you dont specify a fully qualified domain.
翻译:
* 在 syndication 框架中(参阅第 11 章), ``title`` 和 ``description`` 的模板自动访问变量 ``{{ site }}`` ,它就是代表当前着桨的 ``Site`` 对象。而且,如果你不指出一个完全合格的domain的话,提供目录URLS的钩子将会使用当前“Site”对象的domain。
备注:
译者: