回答編集履歴
1
コードを引用
test
CHANGED
@@ -1,3 +1,13 @@
|
|
1
1
|
ここが参考になりそうです。
|
2
2
|
|
3
|
+
```
|
4
|
+
|
5
|
+
{% with 'assets/flags/'|add:request.LANGUAGE_CODE|add:'.gif' as image_static %}
|
6
|
+
|
7
|
+
{% static image_static %}
|
8
|
+
|
9
|
+
{% endwith %}
|
10
|
+
|
11
|
+
```
|
12
|
+
|
3
13
|
[django 1.5 - How to use variables inside static tag - Stack Overflow](https://stackoverflow.com/questions/16655851/django-1-5-how-to-use-variables-inside-static-tag)
|