I’ve got a multi-page app layout, similar to the tutorial. I have:
app.py, which has
application = app.server
index.py, which runs the server and has the default layout with url, etc.
.pyfiles for each page, containing the page’s layout and callbacks
In this case, where should I do things like loading in a csv, connecting to a database, etc.? Right now I’ve got it on
app.py but I notice that when I run it, they will be executed twice, so the startup gets pretty slow when I’m doing API calls.