Code

Ticket #7714: 7714.url_tag_doc.diff

File 7714.url_tag_doc.diff, 829 bytes (added by julien, 6 years ago)

Revised Viktor's patch, adding 'project_name' to the paths

Line 
1Index: django/docs/templates.txt
2===================================================================
3--- django/docs/templates.txt   (revision 7882)
4+++ django/docs/templates.txt   (working copy)
5@@ -1168,7 +1168,7 @@
6 takes a client ID (here, ``client()`` is a method inside the views file
7 ``app_views.py``). The URLconf line might look like this::
8 
9-    ('^client/(\d+)/$', 'app_views.client')
10+    ('^client/(\d+)/$', 'project_name.app_name.app_views.client')
11 
12 If this app's URLconf is included into the project's URLconf under a path
13 such as this::
14@@ -1177,7 +1177,7 @@
15 
16 ...then, in a template, you can create a link to this view like this::
17 
18-    {% url app_views.client client.id %}
19+    {% url project_name.app_name.app_views.client client.id %}
20 
21 The template tag will output the string ``/clients/client/123/``.
22