I started to try using Dash Cloud to publish applications. Currently, its basic functions are very convenient and fast. For sample applications with a relatively simple structure (for example: https://dash-cloud-deploy-demo20250823.plotly.app), the whole process is very convenient.
However, when I tried to test some Dash applications with a more complex project structure (for example: https://github.com/CNFeffery/feffery-antd-docs), in order to avoid the circular import problem caused by directly importing the Dash application instance from app.py in other modules, some users are accustomed to defining the Dash application instance in a separate server.py. This causes the following two checks to fail during the project upload stage: Your app.py contains a line that instantiates Dash (app = Dash() or similar)
Your app.py defines a server as server = app.server
Should we consider adding an additional configuration parameter input box in the project upload interface, allowing users to manually specify the py file corresponding to the Dash instantiation?
Please authenticate to join the conversation.
Completed
Plotly Cloud
11 months ago

An Anonymous User
Get notified by email when there are changes.
Completed
Plotly Cloud
11 months ago

An Anonymous User
Get notified by email when there are changes.