This changeset introduces flask-appconfig integration to manage app configuration loading. By using this extension, we have more possibilities to configure the app:
Use default config users/default_config.py.
Use default config and override necessary values using user-defined config file.
This changeset introduces flask-appconfig integration to manage app configuration loading. By using this extension, we have more possibilities to configure the app:
users/default_config.py
.Use default config and override necessary values using user-defined config file.
Default config:
Custom config:
Example usage:
Use default config and override necessary values using environment variable.
Default config:
By using enviroment variable, we could override specific item, for example:
Note, to use the environment variable properly, the
USERS_
prefix must exist.Now we have more controls on how to configure app in various usecases, e.g. Travis CI integration.