Fix: #477 enhanced Error display if COMPRESS_ROOT nor STATIC_ROOT is defined
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user