From 6951a3cc8a0978b568706c705f4d03fe68b0b152 Mon Sep 17 00:00:00 2001
From: Peter Braden <peterbraden@peter-bradens-macbook.local>
Date: Mon, 2 Feb 2009 11:11:05 +0000
Subject: [PATCH] Doc change re #8764
---
docs/ref/templates/builtins.txt | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index b088fa6..e0298a9 100644
a
|
b
|
Returns an absolute URL (i.e., a URL without the domain name) matching a given
|
708 | 708 | view function and optional parameters. This is a way to output links without |
709 | 709 | violating the DRY principle by having to hard-code URLs in your templates:: |
710 | 710 | |
711 | | {% url path.to.some_view arg1,arg2,name1=value1 %} |
| 711 | Either: |
| 712 | |
| 713 | {% url path.to.some_view arg1,arg2 %} |
| 714 | |
| 715 | Or: |
| 716 | |
| 717 | {% url path.to.some_view name1=value1,name2=value2 %} |
| 718 | |
| 719 | (args and kwargs should not be mixed in the url tag as this can lead to ambiguities) |
712 | 720 | |
713 | 721 | The first argument is a path to a view function in the format |
714 | 722 | ``package.package.module.function``. Additional arguments are optional and |