This Bold BI Django sample repository contains the Dashboard embedding sample. This sample demonstrates how to embed the dashboard which is available in your Bold BI server.
This section guides you in using the Bold BI dashboard in your Django sample application.
The samples require the following to run:
- [Python installer] (https://www.python.org/downloads/)
- Visual Studio Code
- [Python extension in VS code] (https://marketplace.visualstudio.com/items?itemName=ms-python.python)
-
Open the Django embed sample in Visual studio code or any respective IDE.
-
Open the models.py file in the following location, /dashboardapp/models.py.
-
Please change the following properties in the
models.pyfile as per your Bold BI Server.Parameter Description RootUrl Dashboard Server URL (e.g., http://localhost:5000/bi, http://demo.boldbi.com/bi). SiteIdentifier For the Bold BI Enterprise edition, it should be like site/site1. For Bold BI Cloud, it should be an empty string.Environment Your Bold BI application environment. (If Cloud, you should use cloud, if Enterprise, you should useonpremise).dashboardId ID of the dashboard you want to embed. UserEmail UserEmail of the Admin in your Bold BI, which would be used to get the dashboard list. EmbedSecret Get your EmbedSecret key from the Embed tab by enabling the Enable embed authenticationon the Administration page. -
Now run the Django sample.
Please refer to the help documentation to know how to run the sample.
Look at the Bold BI Embedding sample to live demo here.
A complete Bold BI Embedding documentation can be found on the Bold BI Embedding Help.