python - Opening external Url in Django template -
i've django template this:
<ul>     {% url in urls %}     <li><a href="{{ url.url_name }}">{{ url.url_title }}</a></li>     {% endfor %} </ul> url model stores url name , url title of particular url. thought using template, might able open page , redirected external url specified in:
<a href="{{ url.url_name }}"> turns out, can't. how achieve this? i'm newbie in django , don't know do.
please, try with:
<a href="{{ url.url_name }}" target="_self"> 
Comments
Post a Comment