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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -