diff options
| author | Brian Rosner <brosner@gmail.com> | 2009-11-16 01:58:00 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2009-11-16 01:58:00 +0000 |
| commit | 6c61ca3d74ae438c34f404676470234e8213d7c2 (patch) | |
| tree | d1ba558c1b61ca2c19c5cc68428a94aaa57a5280 /docs/topics/http | |
| parent | c169f8cb174c9a8858cc8af207f98b9329f53e82 (diff) | |
Fixed #5034 -- honor request.urlconf in reverse and resolve.
This enables {% url %} to honor request.urlconf set from process_request
middleware methods.
Thanks SmileyChris for the initial patch work.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/urls.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 0b2257cefe..fd45e79876 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -40,7 +40,8 @@ algorithm the system follows to determine which Python code to execute: 1. Django determines the root URLconf module to use. Ordinarily, this is the value of the ``ROOT_URLCONF`` setting, but if the incoming - ``HttpRequest`` object has an attribute called ``urlconf``, its value + ``HttpRequest`` object has an attribute called ``urlconf`` (set by + middleware :ref:`request processing <request-middleware>`), its value will be used in place of the ``ROOT_URLCONF`` setting. 2. Django loads that Python module and looks for the variable |
