Django

Code

Changeset 2948

Show
Ignore:
Timestamp:
05/19/06 22:35:25 (2 years ago)
Author:
mtredinnick
Message:

Documented that CommonMiddleware? will not append a slash to URLs containing a
period in the last component.

Files:

Legend:

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

    r2814 r2948  
    6060* Performs URL rewriting based on the ``APPEND_SLASH`` and ``PREPEND_WWW`` 
    6161  settings. If ``APPEND_SLASH`` is ``True``, URLs that lack a trailing 
    62   slash will be redirected to the same URL with a trailing slash. If 
    63   ``PREPEND_WWW`` is ``True``, URLs that lack a leading "www." will be 
     62  slash will be redirected to the same URL with a trailing slash, unless the 
     63  last component in the path contains a period. So ``foo.com/bar`` is 
     64  redirected to ``foo.com/bar/``, but ``foo.com/bar/file.txt`` is passed 
     65  through unchanged. 
     66   
     67  If ``PREPEND_WWW`` is ``True``, URLs that lack a leading "www." will be 
    6468  redirected to the same URL with a leading "www." 
    6569