1. Luke Plant
  2. django

Commits

ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 88b15e8

Clarified a bit of the {% url %} documentation. Fixes #7714.

  • Participants
  • Parent commits 1358c2f
  • Branches default

Comments (0)

Files changed (1)

File docs/templates.txt

View file
  • Ignore whitespace
 takes a client ID (here, ``client()`` is a method inside the views file
 ``app_views.py``). The URLconf line might look like this::
 
-    ('^client/(\d+)/$', 'app_views.client')
+    ('^client/(\d+)/$', 'project_name.app_name.app_views.client')
 
 If this app's URLconf is included into the project's URLconf under a path
 such as this::
 
 ...then, in a template, you can create a link to this view like this::
 
-    {% url app_views.client client.id %}
+    {% url project_name.app_name.app_views.client client.id %}
 
 The template tag will output the string ``/clients/client/123/``.