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.
This commit is contained in:
Peter Bengtsson
2012-02-28 21:17:38 -08:00
parent cbe345bd05
commit 2ccdf09e1b

View File

@@ -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))