Creating filterable RSS feeds
Django comes with a syndication feed framework that allows you to create RSS and Atom feeds easily. RSS and Atom feeds are XML documents with specific semantics. They can be subscribed in an RSS reader such as Feedly or they can be aggregated in other websites, mobile applications, or desktop applications. In this recipe, we will create BulletinFeed
, which provides a bulletin board with images. Moreover, the results will be filterable by URL query parameters.
Getting ready
Create a new bulletin_board
app and put it under INSTALLED_APPS
in the settings.
How to do it...
We will create a Bulletin
model and an RSS feed for it. We will be able to filter the RSS feed by type or category so that it is possible to only subscribe ...
Get Web Development with Django Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.