From 03c887fb6a995f14179ca6337ce51d419e6da7e2 Mon Sep 17 00:00:00 2001 From: Enrique Paredes Date: Fri, 14 Feb 2014 18:24:36 +0100 Subject: [PATCH] Fix: #477 enhanced Error display if COMPRESS_ROOT nor STATIC_ROOT is defined --- compressor/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compressor/conf.py b/compressor/conf.py index 86e6e72..0697e6b 100644 --- a/compressor/conf.py +++ b/compressor/conf.py @@ -77,7 +77,8 @@ class CompressorConf(AppConf): if value is None: value = settings.STATIC_ROOT if value is None: - raise ImproperlyConfigured("COMPRESS_ROOT setting must be set") + raise ImproperlyConfigured('COMPRESS_ROOT defaults to ' + + 'STATIC_ROOT, please define either') return os.path.normcase(os.path.abspath(value)) def configure_url(self, value):