Buildable feeds

You can build a RSS feed in much the same manner as buildable class-based views.


class BuildableFeed(Feed, BuildableMixin)

Extends the base Django Feed class to be buildable. Configure it in the same way you configure that plus our bakery options listed below.


The target location of the flat file in the BUILD_DIR. Optional. The default is latest.xml, would place the flat file at the site’s root. Defining it as foo/latest.xml would place the flat file inside a subdirectory.


An alias to the build_queryset method used by the management commands


Writes the rendered template’s HTML to a flat file. Only override this if you know what you’re doing.

Example myapp/

from myapp.models import MyModel
from bakery.feeds import BuildableFeed

class ExampleRSSFeed(BuildableFeed):
    link = ''
    build_path = 'rss.xml'

    def items(self):
        return MyModel.objects.filter(is_published=True)