Django

Code

Show
Ignore:
Timestamp:
07/21/08 02:57:10 (5 months ago)
Author:
mtredinnick
Message:

Changed/fixed the way Django handles SCRIPT_NAME and PATH_INFO (or
equivalents). Basically, URL resolving will only use the PATH_INFO and the
SCRIPT_NAME will be prepended by reverse() automatically. Allows for more
portable development and installation. Also exposes SCRIPT_NAME in the
HttpRequest instance.

There are a number of cases where things don't work completely transparently,
so mod_python and fastcgi users should read the relevant docs.

Fixed #285, #1516, #3414.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/global_settings.py

    r7814 r8015  
    189189PREPEND_WWW = False 
    190190 
     191# Override the server-derived value of SCRIPT_NAME 
     192FORCE_SCRIPT_NAME = None 
     193 
    191194# List of compiled regular expression objects representing User-Agent strings 
    192195# that are not allowed to visit any page, systemwide. Use this for bad