dash_on_flask icon indicating copy to clipboard operation
dash_on_flask copied to clipboard

The Path for going back from the Dash App to the Flask App

Open mizujou opened this issue 2 years ago • 1 comments

Hello Oleg,

First, I want to thank you for answering my email sent earlier today and thank you for this GitHub. It is a super helpful one to make a nice little app, the first one for me.

Contexte :

Anyway, today, my app is running, with a Flask app that I use to register and login users, and a Dash app that can be access after login in to see some plots. I recreated an app that have the same architecture than mine but with hello world dash graphs in it.

Here is a link to my GitHub Repo : https://github.com/mizujou/dashINflask

The issue :

I would like to understand, find resources to learn about creating a new route, but this time from the Dash app to the Flask app.

Indeed, after login, I can access to the dash app using the navbar, so I have a route from Flask to Dash. But I haven't succeeded into making the same route but in the other way around.

I hope I was clear in my explanation.

mizujou avatar Jul 20 '21 20:07 mizujou

import dash_bootstrap_components as dbc

dbc.Button(id='temp', children='TEST', href= '/account', external_link=True),

then just make the href what ever page you want i think you can do this with almost all the dbc comps

this will send you to where ever you want from dash the external_link=True just makes the page reload.

CupOfGeo avatar Oct 30 '21 18:10 CupOfGeo