Relative Content

Tag Archive for pythonmongodbflask

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