From 8ac9b794da9217fe143d311fe26e32be4af37604 Mon Sep 17 00:00:00 2001 From: Collin Stedman Date: Tue, 31 Oct 2017 18:33:28 -0400 Subject: [PATCH] Don't require NoopCompressor to be specified when PIPELINE_ENABLED=False --- pipeline/compressors/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipeline/compressors/__init__.py b/pipeline/compressors/__init__.py index 8e1705e5..0d42400d 100644 --- a/pipeline/compressors/__init__.py +++ b/pipeline/compressors/__init__.py @@ -49,10 +49,14 @@ def __init__(self, storage=None, verbose=False): @property def js_compressor(self): + if not settings.PIPELINE_ENABLED: + return NoopCompressor return to_class(settings.JS_COMPRESSOR) @property def css_compressor(self): + if not settings.PIPELINE_ENABLED: + return NoopCompressor return to_class(settings.CSS_COMPRESSOR) def compress_js(self, paths, templates=None, **kwargs):