使用Django变量

时间:2017-02-13 13:17:41

标签: python html django

我想concatenate我的网址Django variable,但我找不到办法。

我的网址链接如下:

http://demoged.datasystems.fr/frontend.jsp?docID=

我希望在=之后添加以下变量:{{ids}}

所以我尝试过这样的事情:

<a href="http://demoged.datasystems.fr:8090/frontend.jsp?docID=" + {{ids}} ">Link</a>

有你的想法吗?

谢谢

1 个答案:

答案 0 :(得分:5)

您可以简单地在href中渲染值。

<a href="http://demoged.datasystems.fr:8090/frontend.jsp?docID={{ids}}">Link</a>
相关问题