diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-08-19 15:08:21 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-08-19 15:08:21 +0000 |
| commit | d1892edc9fa9a2b4e443afb0d389c43f2ef65d50 (patch) | |
| tree | eb9619aad17c39202b2dfe2e6c4764bb8cfda000 /docs | |
| parent | 3c89a32e5294eabe0d484c929c2fbc71c7938733 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/url_dispatch.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/url_dispatch.txt b/docs/url_dispatch.txt index 92730f1446..76a4e1b5f0 100644 --- a/docs/url_dispatch.txt +++ b/docs/url_dispatch.txt @@ -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 ---------- |
