mirror of
https://github.com/django/django.git
synced 2025-01-11 02:46:13 +00:00
aac2a2d2ae
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is then used by the feed builder. If the feed is a RSS feed, an exception is raised as RSS feeds don't allow multiple enclosures per feed item. The ``item_enclosures`` hook defaults to an empty list or, if the ``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure`` built from the ``item_enclosure_url``, ``item_enclosure_length``, and ``item_enclosure_mime_type`` hooks. |
||
---|---|---|
.. | ||
class-based-views | ||
contrib | ||
files | ||
forms | ||
models | ||
templates | ||
applications.txt | ||
checks.txt | ||
clickjacking.txt | ||
csrf.txt | ||
databases.txt | ||
django-admin.txt | ||
exceptions.txt | ||
index.txt | ||
middleware.txt | ||
migration-operations.txt | ||
request-response.txt | ||
schema-editor.txt | ||
settings.txt | ||
signals.txt | ||
template-response.txt | ||
unicode.txt | ||
urlresolvers.txt | ||
urls.txt | ||
utils.txt | ||
validators.txt | ||
views.txt |