【发布时间】:2016-02-17 03:45:47
【问题描述】:
我将一些图像存储在 amazon s3 存储桶中,我想在 html 上呈现它们。
我正在使用这个:
<"{% static 'appname/path_to_image/%s' % {{article1.image}} %}">
但问题是它不会考虑图像 url 字符串,而是从字面上理解 %s。如何更改它以使 article1.image 网址成为主网址的一部分?
提前致谢!
【问题讨论】:
-
只要给
标签: python html django amazon-s3