tags:

views:

66

answers:

1
<a href={% url home %}></a>

i can't find {% url %} in django api

+3  A: 

url

Returns an absolute URL (i.e., a URL without the domain name) matching a given view function and optional parameters. This is a way to output links without violating the DRY principle by having to hard-code URLs in your templates:

{% url path.to.some_view arg1,arg2,name1=value1 %}
S.Mark
Nice, I *really* ought to use this. I hard code far too many urls in my templates!
nbolton