Ticket #4355: url-doc.2.patch

File url-doc.2.patch, 1017 bytes (added by Marc Fargas <telenieko@…>, 8 years ago)

stripped the project_name

  • docs/templates.txt

     
    843843should be comma-separated values that will be used as positional and keyword
    844844arguments in the URL. All arguments required by the URLconf should be present.
    845845
    846 For example, suppose you have a view, ``app_name.client``, whose URLconf takes
     846For example, suppose you have a view, ``app_name.views.client``, whose URLconf takes
    847847a client ID. The URLconf line might look like this::
    848848
    849     ('^client/(\d+)/$', 'app_name.client')
     849    ('^client/(\d+)/$', 'app_name.views.client')
    850850
    851851If this app's URLconf is included into the project's URLconf under a path
    852852such as this::
     
    855855
    856856...then, in a template, you can create a link to this view like this::
    857857
    858     {% url app_name.client client.id %}
     858    {% url app_name.views.client client.id %}
    859859
    860860The template tag will output the string ``/clients/client/123/``.
    861861
Back to Top