1. In index.html create an anchor tag that just shows a character next to each post.  (you can copy and paste this).

When you click on it, it should delete the post from the database and redirect the user to the home page.

In the main.py create a DELETE route at the path /delete/<post_id>

e.g.


SOLUTION


You can download the complete project from this lesson's resources.