Django

Code

Changeset 5945

Show
Ignore:
Timestamp:
08/19/07 10:08:21 (1 year ago)
Author:
mtredinnick
Message:

Added documentation of the arguments for the url() function.

Files:

Legend:

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

    r5939 r5945  
    205205    ) 
    206206 
     207This function takes five arguments, most of which are optional:: 
     208 
     209    url(regex, view, kwargs=None, name=None, prefix='') 
     210 
    207211See `Naming URL patterns`_ for why the ``name`` parameter is useful. 
     212 
     213The ``prefix`` parameter has the same meaning as the first argument to 
     214``patterns()`` and is only relevant when you're passing a string as the 
     215``view`` parameter. 
    208216 
    209217handler404