Django Book 翻译
菜单>:
TOC
返回
原文:
To generate the feeds ``
`` , ``
`` , and ``
`` , Django uses the ``title()`` , ``link()`` , and ``description()`` methods. In the previous example, they were simple string class attributes, but this example illustrates that they can be either strings *or* methods. For each of ``title`` , ``link`` , and ``description`` , Django follows this algorithm:
翻译:
为产生 ``
`` , ``
`` , 和 ``
`` 的feeds, Django使用 ``title()`` , ``link()`` , 和 ``description()`` 方法。 在上面的例子中,它们都是简单的字符串类型的类属性,而这个例子表明,它们既可以是字符串, *也可以是* 方法。对于每一个 ``title`` , ``link`` 和 ``description`` 的组合,Django使用以下的算法:
备注:
译者: