diff --git a/pipeline/conf.py b/pipeline/conf.py index b089ac14..b1534b3c 100644 --- a/pipeline/conf.py +++ b/pipeline/conf.py @@ -6,6 +6,10 @@ from django.core.signals import setting_changed from django.dispatch import receiver +if getattr(_settings, "PIPELINE_SETTING_NAME", ""): + setting_name = getattr(_settings, "PIPELINE_SETTING_NAME") +else: + setting_name = "PIPELINE" DEFAULTS = { 'PIPELINE_ENABLED': not _settings.DEBUG, @@ -115,10 +119,10 @@ def __getattr__(self, name): return self.__getitem__(name) -settings = PipelineSettings(_settings.PIPELINE) +settings = PipelineSettings(getattr(_settings, setting_name)) @receiver(setting_changed) def reload_settings(**kwargs): - if kwargs['setting'] == 'PIPELINE': + if kwargs['setting'] == setting_name: settings.update(kwargs['value'])