【发布时间】:2010-02-05 16:14:12
【问题描述】:
我使用的是 flash 库,设置 xml 文件存储在 /media/xml/gallery.xml 中
在gallery.xml文件中我想添加这段sn-p的代码:
<items>
{% for image in images %}
<item source="{{ MEDIA_URL }}{{ image.image }}" thumb="" description="{{ image.title }}" />
{% endfor %}
</item>
但 source="... 呈现为:http://127.0.0.1:8000/media/images/gallery/%7B%7B%20MEDIA_URL%20%7D%7D%7B%7B%20image.image%20%7D%7D
有没有办法解决这个问题?感谢您的帮助。
【问题讨论】:
标签: python django templates tags media