Ticket #21529: 21529.diff

File 21529.diff, 758 bytes (added by Tim Graham, 5 years ago)
  • docs/ref/templates/builtins.txt

    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    index e5c6efc..5a20381 100644
    a b url 
    10031003^^^
    10041004
    10051005Returns an absolute path reference (a URL without the domain name) matching a
    1006 given view function and optional parameters. This is a way to output links
    1007 without violating the DRY principle by having to hard-code URLs in your
    1008 templates::
     1006given view function and optional parameters. Any special characters will be
     1007encoded using :func:`~django.utils.encoding.iri_to_uri`.
     1008
     1009This is a way to output links without violating the DRY principle by having to
     1010hard-code URLs in your templates::
    10091011
    10101012    {% url 'path.to.some_view' v1 v2 %}
    10111013
Back to Top