質問編集履歴
2
「この、models.py内にある関数hogeを」=>「この、models.py内にある関数kasanを」と訂正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
-
この、models.py内にある関数
|
55
|
+
この、models.py内にある関数kasanを、models.pyと同じフォルダにあるviews.pyからも使いたいのですが、どのようにすればよいのでしょうか。
|
56
56
|
|
57
57
|
|
58
58
|
|
1
hoge.html内 item.number3 => item.kasan に訂正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<p>{{ item.number2 }}</p>
|
46
46
|
|
47
|
-
<p>{{ item.n
|
47
|
+
<p>{{ item.kasan }}</p>
|
48
48
|
|
49
49
|
{% endfor %}
|
50
50
|
|