In my main.py have the below code:
app.config.from_object('config.DevelopmentConfig')
In another module I used import main
and then used main.app.config['KEY']
to get a parameter, but Python interpreter says that it couldn't load the module in main.py
because of the import part. How can I access config parameters in another module in Flask
?