I just wrote this code
<code>import flet as ft
def main(page: ft.Page):
page.title = "My Flet app"
page.add(ft.Text("Hello, world!"))
if __name__ == "__main__":
ft.app(target=main)
</code>
<code>import flet as ft
def main(page: ft.Page):
page.title = "My Flet app"
page.add(ft.Text("Hello, world!"))
if __name__ == "__main__":
ft.app(target=main)
</code>
import flet as ft
def main(page: ft.Page):
page.title = "My Flet app"
page.add(ft.Text("Hello, world!"))
if __name__ == "__main__":
ft.app(target=main)
and try to launch on web station on synology
but i have 502 error on site
and this my setting in web station for this site
enter image description here
i try change code,settings
i try to launch python + flask and it launched as website
New contributor
dotologin dotologin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.