its just a string with an ip address and that's it.
<td> <a href={{ j }}>{{ j }}</a> </td>
so at the end should be something like
<td> <a href=11.111.11.1111> 11.111.11.1111</a> </td>
instead I get the hole path of my url + /11.111.11.1111
I just want to go to 11.111.11.1111
On Friday, February 13, 2015 at 4:46:44 PM UTC-6, daniel.franca wrote:
How's the hyperlink saved in the column? If it's a relative one this is what is going to happen, to change that you need an absolute link, i.e: http://google.comOn Fri 13 Feb 2015 at 23:40 dk <dem...@gmail.com> wrote:--this is my templateI do have this addressand show a table where the second colum is a link to somewhere else, the problem is when I click it lunch me tohttp://127.0.0.1:8000/mes/show_table/clickedLink and doesn't work.as an example if one of my links in the table is pointing to googleo do getinstead of justis there a tag or some magic in django to say just send me here?thanks guys.<table border="1" style="width: 100%">
{% for i in lista %}
<tr>
{% for j in i %}
{% if forloop.counter == 4 %}
<td style="background-color:blue"> <a href={{ j }} target="_blank" >{{ j }}</a> </td>
{% else %}
<td>{{ j }}</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c6ccb7e1- .e202-45cc-a458-02b6c9029eea% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04c2d8ae-8ea5-4847-bbdc-0dc1e323eff7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment