views:

27

answers:

1

HI guys,

I trying to implement the url template tag into my project.
I have a button that allows the user to save the data he is seeing.
So the url of this button is this:

(2)url(r'^nameviews/download/$', 'my.path.is.this.to.download' name="load"),

template:

<a href="{% url load %}">Download</a>

the url of the page that shows the information, and where the button is located is:

(1)(r'^nameviews/$', path.to.page),

but when I tried to click on the button (it should appear the url 2)it doesn't open the file with the data but instead gives me the same url that the main page (1)

the html validator gives me a error on the

    <a href="">   

It seems it doesn't recognize the url tag.

Anyone has any idea?
Thanks a lot guys!

A: 

Resolved! I didn't really understood what's happen because I didn't change much but should have been some silly mistake.

Sorry guys! Thanks any way :)

Pat
Can you post your solution ? Thanks.
Pierre Valade
my solution is already posted. there's something you didn't understand?
Pat