Jinja2 Templates and Forms
Post in Get Help
Hello
I’m working on “ Tourist Attractions ” project in “ Build Python Web Apps with Flask ” and I got stuck at some steps and wasn’t able to complete due to lack of instructions. Can you check all the instructions of this project?
Can’t find tags mentioned in instructions in location.html
Step 5
- Inside the
<tbody class="loctable">
tags create afor
loop that surrounds the<tr>
tags - Inside the
<td class="loc">
tags insert thename
attribute of thelocation
object - Inside the
<td class="desc">
tags insert thedescription
attribute of thelocation
object
Step 7
- Inside the
<td class="btns">
tags create anif
statement that surrounds the<form>
tags
Step 14
- Inside the
<form class="addform"
tag set theaction
attribute tourl_for()
that takes theadd_location
route function as an argument
Can’t find the statement mentioned in instructions in app.py
Step 9
- Inside the
locations()
route function replace theFalse
condition of theif
statement with a check that therequest
object’smethod
attribute equalsPOST
Step 10
- Replace the
[(None, None)]
statement with the output of theitems()
method of therequest
objectsform
attribute