相关疑难解决方法(0)

如何在django模板中连接字符串?

我想在django模板标签中连接字符串

{% extend shop/shop_name/base.html %}
Run Code Online (Sandbox Code Playgroud)

这里shop_name是我的变量,我想将其与路径的其余部分连接起来.
假设我有shop_name

我希望结果能够扩展 shop_name=example.com

django django-templates

184
推荐指数
5
解决办法
11万
查看次数

标签 统计

django ×1

django-templates ×1