Changed/fixed the way Django handles SCRIPT_NAME and PATH_INFO (or
commitf2bb571cc37de92906c1e61f15ca35bb85837a0d
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Mon, 21 Jul 2008 07:57:10 +0000 (21 07:57 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Mon, 21 Jul 2008 07:57:10 +0000 (21 07:57 +0000)
treef838d3d4ad950943936f2e93b353f2dd9542c6fd
parent805b4ab4b3e09b4a9564785f23d5d8ab18b8d83f
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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
13 files changed:
django/conf/global_settings.py
django/core/handlers/base.py
django/core/handlers/modpython.py
django/core/handlers/wsgi.py
django/core/urlresolvers.py
django/http/__init__.py
django/test/client.py
django/utils/thread_support.py [new file with mode: 0644]
django/utils/translation/trans_real.py
docs/fastcgi.txt
docs/modpython.txt
docs/settings.txt
tests/regressiontests/requests/tests.py