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:
Ramiro Morales 2011-06-05 23:44:34 +00:00
parent 0b7fc04691
commit 0638ba5bba
3 changed files with 46 additions and 5 deletions

View file

@ -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.