質問編集履歴
1
@search_items.route("/tables")のルーティングを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,6 +27,16 @@
|
|
27
27
|
)
|
28
28
|
|
29
29
|
return render_template("search_items/index.html", search_form=search_form)
|
30
|
+
|
31
|
+
@search_items.route("/tables")
|
32
|
+
def tables(item_name, item_color):
|
33
|
+
search_images = (
|
34
|
+
db.session.query(Items)
|
35
|
+
.filter_by(item_name=item_name, item_color=item_color)
|
36
|
+
.all()
|
37
|
+
)
|
38
|
+
|
39
|
+
return render_template("search_items/tables.html", search_images=search_images)
|
30
40
|
```
|
31
41
|
```forms.py
|
32
42
|
from flask_wtf import FlaskForm
|