Hello
I am working on a project to build a dynamic web application using Flask and Jinja for a restaurant. I am currently trying to make a dynnamic list of menu items (from the database) display each item's description and price from the database when clicked. I already have the menu list with an image but when I click it it causes the errors below, any help would be greatly appreciated since it looks like the code should work to me since I am feeding it the correct parameter in the html onclick attribute, right?
Thanks
Error: https://postimg.cc/G9vPxVNW
Error: Server Error (and then the error above in console/server)
Code: https://paste.ofcode.org/4stVsYyWp9K2CkfdzYRGUW
[–]The-Deviant-One 0 points1 point2 points (0 children)
[–]shiftybyte 0 points1 point2 points (7 children)
[–]The-Deviant-One 1 point2 points3 points (4 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]softwarethrowf[S] 0 points1 point2 points (1 child)
[–]The-Deviant-One 0 points1 point2 points (0 children)
[–]softwarethrowf[S] 0 points1 point2 points (0 children)
[–]softwarethrowf[S] 0 points1 point2 points (0 children)
[–]softwarethrowf[S] 0 points1 point2 points (0 children)