The high-level framework
Overview
The high-level feed-generating framework is supplied by the Feed
class. To create a feed, write a Feed
class and point to an instance of it in your URLconf.
Feed classes
A Feed
class is a Python class that represents a syndication feed. A feed can be simple (for example, a site news feed, or a basic feed displaying the latest entries of a blog) or more complex (for example, a feed displaying all the blog entries in a particular category, where the category is variable). Feed classes subclass django.contrib.syndication.views.Feed
. They can live anywhere in your codebase. Instances of Feed
classes are views which can be used in your URLconf.
A simple example
This simple example, taken from a hypothetical police beat ...
Get Mastering Django: Core 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.