Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #12946: Removed an invalid example of url tag usage from the docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ecb56cecbddffe7f06e94a08d2d71713d85514e4 1 parent 6d7754b
Karen Tracey authored March 02, 2010

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. 12  docs/ref/templates/builtins.txt
12  docs/ref/templates/builtins.txt
@@ -891,12 +891,18 @@ Returns an absolute URL (i.e., a URL without the domain name) matching a given
891 891
 view function and optional parameters. This is a way to output links without
892 892
 violating the DRY principle by having to hard-code URLs in your templates::
893 893
 
894  
-    {% url path.to.some_view arg1,arg2,name1=value1 %}
  894
+    {% url path.to.some_view v1,v2 %}
895 895
 
896 896
 The first argument is a path to a view function in the format
897 897
 ``package.package.module.function``. Additional arguments are optional and
898  
-should be comma-separated values that will be used as positional and keyword
899  
-arguments in the URL. All arguments required by the URLconf should be present.
  898
+should be comma-separated values that will be used as arguments in the URL.
  899
+The example above shows passing positional arguments. Alternatively you may
  900
+use keyword syntax::
  901
+
  902
+    {% url path.to.some_view arg1=v1,arg2=v2 %}
  903
+
  904
+Do not mix both positional and keyword syntax in a single call. All arguments 
  905
+required by the URLconf should be present. 
900 906
 
901 907
 For example, suppose you have a view, ``app_views.client``, whose URLconf
902 908
 takes a client ID (here, ``client()`` is a method inside the views file

0 notes on commit ecb56ce

Please sign in to comment.
Something went wrong with that request. Please try again.