Flask - Ecosystem and Patterns
What will happen if you call
What is
create_app() twice with different configs in this pattern?def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config['DEBUG'] = True
else:
app.config['DEBUG'] = False
return app
app1 = create_app('dev')
app2 = create_app('prod')What is
app2.config['DEBUG']?