Open LiuYuWei opened 6 months ago
This code is not working as well locally.
from taipy.gui import Gui
Gui("# Taipy App").run(base_url="/taipy")
Is anyone know that how to fix the error?
The base_url is to be used when working with a proxy. The base_url is basically for deployment usage only and not locally.
It is a way to let Taipy know if the base path is hosted on a different base route. What is your use case for using base_url?
Hi @FlorianJacta
We can put the application into our platform app store and the user can create the app by themselves. Our app service needs to use url prefix for each unique app pod. If the environment variable needs other method to combine together, then I think I cannot put into our service platform. Do you have method without proxy? Thanks!
If the requirement is for a local setup for a single application, modifying the page name could suffice:
prefix_url = "prefix/"
pages = {
prefix_url + 'page_1': page_1,
prefix_url + 'page_2': page_2
}
Gui(pages=pages).run()
This approach allows for simple redirection within the local context of a single Taipy application. However, when involving multiple Taipy applications, a more robust proxy solution is necessary. We can help you on that.
We need to add some documentation on that.
This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines.
This issue has been unassigned automatically because it has been marked as "🥶Waiting for contributor" for more than 14 days with no activity.
This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines.
Description A complete and clear description of the problem. If I configure the base_url in gui.run, and I will get the blank website in web browser.
How to reproduce
if name == "main": df_selection, sales_by_product_line, sales_by_hour = filter( city, customer_type, gender ) Gui(page).run(margin="0em", title="Sales Dashboard", base_url="/taipy/")