utils.feedgenerator.SyndicationFeed.add_item()

add_item(title, link, description, author_email=None, author_name=None, author_link=None, pubdate=None, comments=None, unique_id=None, enclosure=None, categories=(), item_copyright=None, ttl=None, updateddate=None, enclosures=None, **kwargs) [source]

Adds an item to the feed. All args are expected to be Python unicode objects except pubdate and updateddate, which are datetime.datetime objects, enclosure, which is an Enclosure instance, and enclosures, which is a list of Enclosure instances.

Deprecated since version 1.9: The enclosure keyword argument is deprecated in favor of the new enclosures keyword argument which accepts a list of Enclosure objects.

doc_Django
2016-10-09 18:40:27
Comments
Leave a Comment

Please login to continue.