Django

Code

Changeset 5939

Show
Ignore:
Timestamp:
08/19/07 05:15:11 (1 year ago)
Author:
mtredinnick
Message:

Added links from any reference to the url template tag to the appropriate place in the template tag documentation. Fixed #5198.

Files:

Legend:

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

    r5796 r5939  
    513513This is completely valid, but it leads to problems when you try to do reverse 
    514514URL matching (through the ``permalink()`` decorator or the ``{% url %}`` 
    515 template tag). Continuing this example, if you wanted to retrieve the URL for 
     515`template tag`_). Continuing this example, if you wanted to retrieve the URL for 
    516516the ``archive`` view, Django's reverse URL matcher would get confused, because 
    517517*two* URLpatterns point at that view. 
     
    553553    ``myapp-comment`` instead of ``comment``. 
    554554 
     555.. _template tag: ../templates/#url 
     556 
    555557Utility methods 
    556558=============== 
     
    559561--------- 
    560562 
    561 If you need to use something similar to the ``{% url %}`` template tag in your 
    562 code, Django provides the ``django.core.urlresolvers.reverse()``. The 
     563If you need to use something similar to the ``{% url %}`` `template tag`_ in 
     564your code, Django provides the ``django.core.urlresolvers.reverse()``. The 
    563565``reverse()`` function has the following signature:: 
    564566