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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-08-19 15:08:21 +00:00
parent 3c89a32e52
commit d1892edc9f
1 changed files with 8 additions and 0 deletions

View File

@ -204,8 +204,16 @@ optional extra arguments dictionary. For example::
...
)
This function takes five arguments, most of which are optional::
url(regex, view, kwargs=None, name=None, prefix='')
See `Naming URL patterns`_ for why the ``name`` parameter is useful.
The ``prefix`` parameter has the same meaning as the first argument to
``patterns()`` and is only relevant when you're passing a string as the
``view`` parameter.
handler404
----------