diff options
| author | James Bennett <ubernostrum@gmail.com> | 2008-03-18 20:58:39 +0000 |
|---|---|---|
| committer | James Bennett <ubernostrum@gmail.com> | 2008-03-18 20:58:39 +0000 |
| commit | cc083724c1c06c3b490affe47b76f5ef34ef136f (patch) | |
| tree | 46f2e183f732c5096f97466bdc7ed0837dc57bd9 /docs/url_dispatch.txt | |
| parent | 41d101e9ce10ab08051db47500f24a701b6882e9 (diff) | |
Fixed #6382: Documented request.urlconf
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/url_dispatch.txt')
| -rw-r--r-- | docs/url_dispatch.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/url_dispatch.txt b/docs/url_dispatch.txt index 789399de8d..053ee954a3 100644 --- a/docs/url_dispatch.txt +++ b/docs/url_dispatch.txt @@ -32,9 +32,11 @@ How Django processes a request When a user requests a page from your Django-powered site, this is the algorithm the system follows to determine which Python code to execute: - 1. Django looks at the ``ROOT_URLCONF`` setting in your `settings file`_. - This should be a string representing the full Python import path to your - URLconf. For example: ``"mydjangoapps.urls"``. + 1. Django determines the root URLConf module to use; ordinarily + this is the value of the ``ROOT_URLCONF`` setting in your + `settings file`_, but if the incoming ``HttpRequest`` object + has an attribute called ``urlconf``, its value will be used in + place of the ``ROOT_URLCONF`` setting. 2. Django loads that Python module and looks for the variable ``urlpatterns``. This should be a Python list, in the format returned by the function ``django.conf.urls.defaults.patterns()``. |
