We need a way to control environment configuration variables and constant project-wide variables, so we can customize the project behavior with minimal changes.
Solution
Dynaconf, we're using this library to manage that kind of configuration, allowing us to have multiple configuration environments, default values when variables are missing, and much more. For now, we're keeping it simple, we only use the main configuration file and default configuration values for a few variables.
Relevant files
pyproject.toml = added dynaconf dependency
config.py = added configuration file with a few default values
settings.toml = empty, but we can use it to add more default configurations
Problem
We need a way to control environment configuration variables and constant project-wide variables, so we can customize the project behavior with minimal changes.
Solution
Dynaconf, we're using this library to manage that kind of configuration, allowing us to have multiple configuration environments, default values when variables are missing, and much more. For now, we're keeping it simple, we only use the main configuration file and default configuration values for a few variables.
Relevant files
pyproject.toml
= added dynaconf dependencyconfig.py
= added configuration file with a few default valuessettings.toml
= empty, but we can use it to add more default configurationsFurther work