Ticket #4355: url-doc.patch
File url-doc.patch, 1.0 KB (added by , 17 years ago) |
---|
-
docs/templates.txt
843 843 should be comma-separated values that will be used as positional and keyword 844 844 arguments in the URL. All arguments required by the URLconf should be present. 845 845 846 For example, suppose you have a view, `` app_name.client``, whose URLconf takes846 For example, suppose you have a view, ``project_name.app_name.views.client``, whose URLconf takes 847 847 a client ID. The URLconf line might look like this:: 848 848 849 ('^client/(\d+)/$', ' app_name.client')849 ('^client/(\d+)/$', 'project_name.app_name.views.client') 850 850 851 851 If this app's URLconf is included into the project's URLconf under a path 852 852 such as this:: … … 855 855 856 856 ...then, in a template, you can create a link to this view like this:: 857 857 858 {% url app_name.client client.id %}858 {% url project_name.app_name.views.client client.id %} 859 859 860 860 The template tag will output the string ``/clients/client/123/``. 861 861