Replies: 2 comments 3 replies
-
I assume you are talking about a Django project, Then after dynaconf is loaded and configured with its data sources (yaml, toml, envvars, redis etc...) all the variables belonging to my application I tend to put in the settings.yaml (given your example). The default variables (DEBUG, MIDDLEWARES, etc) can then be overridden using the yaml or environment variables. The next release of Dynaconf is coming with a tool #939 to allow you to track the provenance of a variable. |
Beta Was this translation helpful? Give feedback.
-
(Django indeed!) |
Beta Was this translation helpful? Give feedback.
-
I appreciate Dynaconf's way of having configuration values in a settings.yaml file. However, this means that some, but not all, config values "move" from settings.py to settings.yaml.
I'm struggling a bit on how to keep track of where config values are defined. Currently I comment them out in settings.py. It is a bit confusing to a new user (or future me) on where to find a specific config value.
What strategy do you use to make config values easy to locate?
Beta Was this translation helpful? Give feedback.
All reactions