回答編集履歴

3

修正

2020/09/28 10:30

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # views.py
6
6
 
7
- from django.shortcuts import render, get_object_or_404
7
+ from django.shortcuts import render
8
8
 
9
9
 
10
10
 

2

修正

2020/09/28 10:30

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -1,3 +1,5 @@
1
+ 関数で書く。
2
+
1
3
  ```Python
2
4
 
3
5
  # views.py

1

修正

2020/09/28 10:30

投稿

ForestSeo
ForestSeo

スコア2720

test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  # ・・・
28
28
 
29
- path('result/', views.result_view, name="result"),
29
+ path('result/<int:id>', views.result_view, name="result"),
30
30
 
31
31
  ]
32
32