上QQ阅读APP看书,第一时间看更新
How it works...
Now we can use any of the preceding classes while loading the application's configuration via from_object(). Let's say that we save the preceding class-based configuration in a file named configuration.py, as follows:
app.config.from_object('configuration.DevelopmentConfig')
Overall, this makes the management of configurations for different deployment environments more flexible and easy.