Hello.
I am working on a project that tries to integrate Flask and Dash together. Everything is coming along smoothly but I do not know how to use data from either Flask Form or Flask Login in my Dash app.
The idea is that a user logs into the app via Flask Login, can click on the navbar to go to the dashboard and then the dashboard is rendered for the data he owns (there will be multiple users and each user will have their own data stored in a database). Let’s say each row in the database has a column “owner” which value is an email of the owner that he uses to log in.
Everything else is working. I have my Flash app with multiple routes, a working Dash app under Flask, but I’m clueless as to how to pass logged user’s email from the login form to the SQL query used to get data for the dash dashboard.
I should say please assume I’m missing some obvious solution as this is my first personal project using both libraries.