flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.

Home Page:https://flet.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flet pack an application

Ga0512 opened this issue · comments

I have the following structure of my application (I'm using flet_route):

src:
"""here you go
Python modules that I made to use in the backend, for example, session.py, thread.py etc."""

Pages
"""app route pages, using flet_route"""
welcome.py
form.py

main.py (the app that runs all this)

My question is: if I redo flet pack main.py, will it work normally because of these modules?
In fact, I ran this, and only the screens work correctly, the backend doesn't.

Should I put everything in main.py? Or is there some trick?