Changeset 7303
- Timestamp:
- 03/18/08 15:58:39 (7 months ago)
- Files:
-
- django/trunk/docs/request_response.txt (modified) (1 diff)
- django/trunk/docs/settings.txt (modified) (1 diff)
- django/trunk/docs/url_dispatch.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/request_response.txt
r7294 r7303 141 141 The raw HTTP POST data. This is only useful for advanced processing. Use 142 142 ``POST`` instead. 143 144 ``urlconf`` 145 Not defined by Django itself, but will be read if other code 146 (e.g., a custom middleware class) sets it; when present, this will 147 be used as the root URLConf for the current request, overriding 148 the ``ROOT_URLCONF`` setting. See `How Django processes a 149 request`_ for details. 150 151 .. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request 152 143 153 144 154 Methods django/trunk/docs/settings.txt
r7294 r7303 755 755 756 756 A string representing the full Python import path to your root URLconf. For example: 757 ``"mydjangoapps.urls"``. See `How Django processes a request`_. 757 ``"mydjangoapps.urls"``. Can be overridden on a per-request basis by 758 setting the attribute ``urlconf`` on the incoming ``HttpRequest`` 759 object. See `How Django processes a request`_ for details. 758 760 759 761 .. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request django/trunk/docs/url_dispatch.txt
r7294 r7303 33 33 algorithm the system follows to determine which Python code to execute: 34 34 35 1. Django looks at the ``ROOT_URLCONF`` setting in your `settings file`_. 36 This should be a string representing the full Python import path to your 37 URLconf. For example: ``"mydjangoapps.urls"``. 35 1. Django determines the root URLConf module to use; ordinarily 36 this is the value of the ``ROOT_URLCONF`` setting in your 37 `settings file`_, but if the incoming ``HttpRequest`` object 38 has an attribute called ``urlconf``, its value will be used in 39 place of the ``ROOT_URLCONF`` setting. 38 40 2. Django loads that Python module and looks for the variable 39 41 ``urlpatterns``. This should be a Python list, in the format returned by
