From 2ccdf09e1b64a14d755bfe2a56352d9f1345ea2b Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 28 Feb 2012 21:17:38 -0800 Subject: [PATCH] As of django 1.4 b1, the default value for `STATIC_ROOT` is `''` which means `COMPRESS_ROOT` becomes `''` which is false but not None. I haven't proven this with unit tests but I know that just changing it to "is None" fixed it for my django 1.4b1 project. --- compressor/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compressor/conf.py b/compressor/conf.py index 1211ca4..3613166 100644 --- a/compressor/conf.py +++ b/compressor/conf.py @@ -73,7 +73,7 @@ class CompressorConf(AppConf): value = getattr(settings, 'STATIC_ROOT', None) if not value: value = settings.MEDIA_ROOT - if not value: + if value is None: raise ImproperlyConfigured("COMPRESS_ROOT setting must be set") return os.path.normcase(os.path.abspath(value))