Dash for building static website?

I’m a beginner in Dash. While Dash is mainly built for building dynamic data visualization, given that it’s based on Flask, it can be used to build simple website too, right? I’d like use Dash to build a personal website, plan to add pages for data apps later on.

Or, is it better (easier) to build it with Flask or other simpler tools and embed Dash app?

Thanks.

Hello @weiqi.zhang,

You can build both actually.

Once you create your app, you can create flask server routes by using:

@app.server.route(‘/pathtopage’, methods=‘GET’)

Templates and static directories are also available by default for the server.

2 Likes

Hi @weiqi.zhang ,

Try Dash Pages if you want to create multiple pages using Dash, so you can add website pages and add data apps on other pages later on.

2 Likes