diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-31 11:11:20 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-31 11:11:20 +0000 |
| commit | a63a83e5d88cd1696d1c40e89f254f69116c6800 (patch) | |
| tree | db8933fe7c50afade878ac37996c76259f266044 /docs | |
| parent | 84ef4a9b1decce8e319359a018eef46a9556b630 (diff) | |
A rewrite of the reverse URL parsing: the reverse() call and the "url" template tag.
This is fully backwards compatible, but it fixes a bunch of little bugs. Thanks
to SmileyChris and Ilya Semenov for some early patches in this area that were
incorporated into this change.
Fixed #2977, #4915, #6934, #7206.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/urls.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 1027772515..c8564a3bb8 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -612,6 +612,13 @@ arguments to use in the URL matching. For example:: .. _URL pattern name: `Naming URL patterns`_ +The ``reverse()`` function can reverse a large variety of regular expression +patterns for URLs, but not every possible one. The main restriction at the +moment is that the pattern cannot contain alternative choices using the +vertical bar (``"|"``) character. You can quite happily use such patterns for +matching against incoming URLs and sending them off to views, but you cannot +reverse such patterns. + permalink() ----------- |
