You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1527 Discuss what's the workaround to overwrite runtime parameters in 0.18.x. This thread summarises the solutions so it's easier for people to find the right solution.
We are working on a cleaner solution, but for the time being these are the workarounds that work.
To overwrite runtime parameters with globals.yml and update parameters.yml and catalog.yml
In settings.py, you need to create a custom ConfigLoader class and register it as the CONFIG_LOADER_CLASS
# settings.pyclassMyTemplatedConfigLoader(TemplatedConfigLoader):
def__init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
ifself.runtime_params:
self._config_mapping.update(self.runtime_params)
CONFIG_LOADER_CLASS=MyTemplatedConfigLoader# TemplatedConfigLoader# Keyword arguments to pass to the `CONFIG_LOADER_CLASS` constructor.CONFIG_LOADER_ARGS= {
"globals_pattern": "*globals.yml",
}
Logging related - Framework Logging & Project Logging,
TBC
Ways to customize disable/enable rich functionalities
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
#1527 Discuss what's the workaround to overwrite runtime parameters in 0.18.x. This thread summarises the solutions so it's easier for people to find the right solution.
We are working on a cleaner solution, but for the time being these are the workarounds that work.
To overwrite runtime parameters with
globals.yml
and updateparameters.yml
andcatalog.yml
In
settings.py
, you need to create a customConfigLoader
class and register it as theCONFIG_LOADER_CLASS
Logging related - Framework Logging & Project Logging,
TBC
Ways to customize disable/enable
rich
functionalitiesTBC
Beta Was this translation helpful? Give feedback.
All reactions