I’m using {% url path_to_view %} to generate links within my application. I came to the situation when I need to use several static pages without views, using direct_to_template. Normally, if I had just one such page, I could use {% url direct_to_template %} to generate link to it, but with more URLs pointing to this view, {% url direct_to_template %} always points to the last one in urls.py.
Is it possible to use {% url %} syntax to point directly to some template? Or is the only choice to use views even if I don’t really need them?
If you have django 1.3 use the class bases generic views, and you should create at least a url pattern
url.py
template: