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.com On Fri 13 Feb 2015 at 23:40 dk <demi...@gmail.com> wrote:
> this is my template > I do have this address > http://127.0.0.1:8000/mes/show_table/ > and show a table where the second colum is a link to somewhere else, the > problem is when I click it lunch me to > http://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 google > o do get > http://127.0.0.1:8000/mes/show_table/google > instead of just > google > > is 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+unsubscr...@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/c6ccb7e1-e202-45cc-a458-02b6c9029eea%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/c6ccb7e1-e202-45cc-a458-02b6c9029eea%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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+unsubscr...@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/CACPst9%2BT9Nq-CfVsUHfpwXiysOCNiBq9M3SdXRd99r6puLf0gg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.