Django

Code

Show
Ignore:
Timestamp:
03/20/08 01:35:53 (6 months ago)
Author:
mtredinnick
Message:

Merged the tests and documentation from #4720 to support the changes in [7295].
Thanks, Andy Gayton. Fixed #4720. Refs #5855.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/syndication_feeds.txt

    r7294 r7328  
    245245      subclass of ``ObjectDoesNotExist``. Raising ``ObjectDoesNotExist`` in 
    246246      ``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. 
    247254 
    248255    * To generate the feed's ``<title>``, ``<link>`` and ``<description>``,