Changeset 7328 for django/trunk/docs/syndication_feeds.txt
- Timestamp:
- 03/20/08 01:35:53 (6 months ago)
- Files:
-
- django/trunk/docs/syndication_feeds.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/syndication_feeds.txt
r7294 r7328 245 245 subclass of ``ObjectDoesNotExist``. Raising ``ObjectDoesNotExist`` in 246 246 ``get_object()`` tells Django to produce a 404 error for that request. 247 248 **New in Django development version:** The ``get_object()`` method also 249 has a chance to handle the ``/rss/beats/`` url. In this case, ``bits`` 250 will be an empty list. In our example, ``len(bits) != 1`` and an 251 ``ObjectDoesNotExist`` exception will be raised, so ``/rss/beats/`` will 252 generate a 404 page. But you can handle this case however you like. For 253 example you could generate a combined feed for all beats. 247 254 248 255 * To generate the feed's ``<title>``, ``<link>`` and ``<description>``,
