Best practice for accessing object instances across pages #2346
NanoscaleSimulations
announced in
Q&A
Replies: 1 comment 1 reply
-
I would probably just define the calculator state in its own python module, then import that into each page module that needs to access it. The state itself is shared across the entire app already, so it's just a matter of how you want to structure the python code. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I am new to web development. I am creating a type of calculator app.
When the user starts a calculation the application creates an instance of a calculator class and has to go through a series of pages where they enter inputs before running a calculation.
My question:
What is the best practice for having access to this calculator instance across pages without having all code in one singe module?
Beta Was this translation helpful? Give feedback.
All reactions