Changeset 5939
- Timestamp:
- 08/19/07 05:15:11 (1 year ago)
- Files:
-
- django/trunk/docs/url_dispatch.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/url_dispatch.txt
r5796 r5939 513 513 This is completely valid, but it leads to problems when you try to do reverse 514 514 URL matching (through the ``permalink()`` decorator or the ``{% url %}`` 515 template tag). Continuing this example, if you wanted to retrieve the URL for515 `template tag`_). Continuing this example, if you wanted to retrieve the URL for 516 516 the ``archive`` view, Django's reverse URL matcher would get confused, because 517 517 *two* URLpatterns point at that view. … … 553 553 ``myapp-comment`` instead of ``comment``. 554 554 555 .. _template tag: ../templates/#url 556 555 557 Utility methods 556 558 =============== … … 559 561 --------- 560 562 561 If you need to use something similar to the ``{% url %}`` template tag in your562 code, Django provides the ``django.core.urlresolvers.reverse()``. The563 If you need to use something similar to the ``{% url %}`` `template tag`_ in 564 your code, Django provides the ``django.core.urlresolvers.reverse()``. The 563 565 ``reverse()`` function has the following signature:: 564 566
