Code

Changes between Version 16 and Version 17 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
10/18/05 23:40:11 (9 years ago)
Author:
eugene@…
Comment:

minor typo correction, more info on current behavior of 404 and 500 templates, notes on directory rewrites

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v16 v17  
    137137   * Add {{{"django.middleware.sessions.SessionMiddleware"}}} to {{{MIDDLEWARE_CLASSES}}}, if it's not already in there. 
    138138   * If you've created any custom admin templates, add the appropriate line from the admin {{{TEMPLATE_DIRS}}} setting to your "main" {{{TEMPLATE_DIRS}}}. 
     139     * '''Current behavior:''' Django looks up 404/500 templates in your {{{TEMPLATE_DIRS}}} without any fallback mechanism. Make sure you have these templates available. 
    139140   * If you've created any custom admin templates, note that the template inheritance structure has changed. All admin templates are now within an {{{admin}}} subdirectory of the template directory. The following admin templates are directly affected by this change: 
    140      * 400 --> admin/404 
     141     * 404 --> admin/404 
    141142     * 500 --> admin/500 
    142143     * base --> admin/base 
     
    165166   Change that {{{"admin"}}} to whatever URL you were using for the admin site. 
    166167 
     168If you use external mapping to files and directories (e.g., using mod_rewrite), do the following: 
     169 
     170 * Make sure you don't redirect {{{/admin}}} to another instance of Django with different settings (e.g., using admin.py). Now '''one''' instance of Django handles admin '''and''' your main site. Do not redirect now! 
     171 * If you had a mapping of admin media files, make sure that it points to new directory, which is {{{/your/path/to/django/contrib/admin/media}}}. 
     172 
    167173The following steps are optional but will tighten your code up. All assume your project is called {{{myproject}}}. 
    168174