Django

Code

Show
Ignore:
Timestamp:
03/18/08 15:58:39 (8 months ago)
Author:
ubernostrum
Message:

Fixed #6382: Documented request.urlconf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/url_dispatch.txt

    r7294 r7303  
    3333algorithm the system follows to determine which Python code to execute: 
    3434 
    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. 
    3840    2. Django loads that Python module and looks for the variable 
    3941       ``urlpatterns``. This should be a Python list, in the format returned by