I have a Flask website with Dash running on it. I was wondering if there is a way of having a page with a Flask Form on it which people fill in and the answers get updated in the Dashboard?

I would imagine the logic of this would be something like: Flask form --> responses stored in SQLAlchemy --> Dash graphs (updated via dcc.Interval() perhaps?).

Would appreciate it if anyone could shed some light on this. I can connect the form answers to SQLAlchemy and perform query to obtain the answer (e.g. user = User.query.get(id) to get Id of a user) but I don't know how to use this in Dash.

Thanks.

0 Answers