Code

Changes between Version 15 and Version 16 of ContributedMiddleware


Ignore:
Timestamp:
07/28/06 15:38:20 (8 years ago)
Author:
dougvanhorn
Comment:

Adding my small part to the Django Project.

Legend:

Unmodified
Added
Removed
Modified
  • ContributedMiddleware

    v15 v16  
    3434If REMOVE_WWW is set to True, the www. prefix is removed. 
    3535Finally, ?lang=xx can be appended to any url to override the default language setting. This override is remembered for the following requests. For example, /article?lang=it would show the article in Italian regardless of brower settings or cookies, and any following request to the site would be shown in Italian by default. 
     36 
     37=== [http://code.djangoproject.com/attachment/wiki/ContributedMiddleware/StripWhitespaceMiddleware.py Strip Whitespace Middleware] by Doug Van Horn === 
     38 
     39Removes extra whitespace from response content.  It's kind of nice for removing extra line breaks, but it also removes leading spaces.  Probably not too important for most of us, but for the bandwidth conscious it might be helpful.