Rendering MongoDB Data in Flask Template for Employee Names
I’m building a web application using Flask and MongoDB where I need to associate employees with tables. In my application, each table document in MongoDB has a funcionario_id
field storing an ObjectId of the employee. When rendering the list of tables (mesas
) in my Flask template (mesas.html
), I’m trying to display the associated employee names based on their _id
.
In my /mesas route
how to pull a singular item from a MongoDB collection using flask
Every time i try to pull an item localhost:5000 gives me an internal server error