Correctly load settings into flask config