After asking a previous question someone told me the organization of my application was weird, so I looked at other examples to see how I could handle what I want to do.
The clearest example I found is a school case of flask application. From what I understand:
The
app
object is declared in the app moduleRoutes are declared in the routes module
The blueprint import the routes as I want
However in my application to answer some of the routes I need to access parameters that are defined in the app module (they are used before creating the app object).
How can I make these parameters accessible in the routes module?
I can't just import them from app since that would be a circular import.
I could use a constructor function like suggested in this question but considering the remarks to my previous question it seems like it is not the usual way to deal with this issue.