You can build a RSS feed in much the same manner as buildable class-based views.
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.xmlwould place the flat file inside a subdirectory.
Writes the rendered template’s HTML to a flat file. Only override this if you know what you’re doing.
from myapp.models import MyModel from bakery.feeds import BuildableFeed class ExampleRSSFeed(BuildableFeed): link = 'http://www.mysite.com/rss.xml' build_path = 'rss.xml' def items(self): return MyModel.objects.filter(is_published=True)