質問編集履歴

1

book/views.pyを追加させて頂きました!

2020/04/22 04:37

投稿

senbakoki
senbakoki

スコア6

test CHANGED
File without changes
test CHANGED
@@ -174,6 +174,26 @@
174
174
 
175
175
  ```
176
176
 
177
+ book/views.py
178
+
179
+ ```
180
+
181
+ from django.views.generic import ListView
182
+
183
+
184
+
185
+ from .models import BookModel
186
+
187
+
188
+
189
+ class BookListView(ListView):
190
+
191
+ model = BookModel
192
+
193
+ template_name = "booklist.html"
194
+
195
+ ```
196
+
177
197
 
178
198
 
179
199