Django Book 翻译
菜单>:
TOC
返回
原文:
Some developers like to make available both Atom *and* RSS versions of their feeds. Thats easy to do with Django: just create a subclass of your ``feed`` class and set the ``feed_type`` to something different. Then update your URLconf to add the extra versions. Heres a full example:
翻译:
一些开发人员想 *同时* 支持Atom和RSS。这在Django中很容易实现:只需创建一个你的 ``feed`` 类的子类,然后修改 ``feed_type`` ,并且更新URLconf内容。下面是一个完整的例子:
备注:
译者: