mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Enhanced a bit the documentation and docstring for the url template tag. Also, added a test for it.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0b7fc04691
commit
0638ba5bba
3 changed files with 46 additions and 5 deletions
|
@ -1073,8 +1073,20 @@ projects?
|
|||
For example::
|
||||
|
||||
{% load url from future %}
|
||||
|
||||
|
||||
{% url 'app_views.client' %}
|
||||
|
||||
{% url 'myapp:view-name' %}
|
||||
|
||||
{% with view_path="app_views.client" %}
|
||||
{% url view_path client.id %}
|
||||
{% endwith %}
|
||||
|
||||
{% with url_name="client-detail-view" %}
|
||||
{% url url_name client.id %}
|
||||
{% endwith %}
|
||||
|
||||
The new library also drops support for the comma syntax for
|
||||
separating arguments to the :ttag:`url` template tag.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue