Code

Changes between Version 137 and Version 138 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
12/02/07 07:43:12 (7 years ago)
Author:
mtredinnick
Comment:

Documented changes to generic views.

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v137 v138  
    4646 * [6796] Dec 1, 2007: [#Removedunusedsessionbackendfunctions Removed unused session backend functions] 
    4747 * [6832] Dec 2, 2007: [#Settingsexceptiontypeschanged Settings exception types changed] 
     48 * [6833] Dec 2, 2007: [#Genericviewsemptydefaults Generic views' empty defaults] 
    4849 
    4950== Database constraint names changed == 
     
    479480== Settings exception types changed == 
    480481 
    481 In [6382] we changed the possible exceptions raised when initialising Django's settings in order not to interfere with Python's {{{help()}}} function. If there is a problem such as not being able to find the settings module (via the {{{DJANGO_SETTINGS_MODULE}}} environment variable, for example), an `ImportError` is now raised (previously it was `EnvironmentError`). If you try to reconfigure settings after having already used them, a `RuntimeError` is raised (rather than the previous `EnvironmentError`). 
     482In [6382] we changed the possible exceptions raised when initialising Django's settings in order not to interfere with Python's {{{help()}}} function. If there is a problem such as not being able to find the settings module (via the {{{DJANGO_SETTINGS_MODULE}}} environment variable, for example), an `ImportError` is now raised (previously it was `EnvironmentError`). If you try to reconfigure settings after having already used them, a `RuntimeError` is raised (rather than the previous `EnvironmentError`). See #5743 for the details of this change. 
     483 
     484== Generic views' empty defaults == 
     485 
     486In [6383] the {{{allow_empty}}} parameter to the {{{archive_index()}}} and {{{object_list()}}} generic views were changed to be True by default. So viewing a list of objects that is empty will not raise a 404 HTTP error. Things like date-based views still raise a 404 when there is nothing to view (by default), since viewing a non-existent date is usually going to be an error. See #685 for details.