RuntimeError: Working outside of application context when loading instance config after upgrade
The goal is to confirm that after a failed Flask upgrade and subsequent downgrade, instance‑specific configuration files are loaded correctly when using the application factory pattern. Currently the instance_relative_config flag defaults to False , which can cause confusion about where Flask expects to find the instance folder. This uncertainty interacts wi