Fixed bug introduced in 1.0 with regard to COMPRESS_ENABLED. Fixes #119.

This commit is contained in:
Jannis Leidel
2011-09-15 15:13:06 +02:00
parent 82573bb0ed
commit 9d69176914

View File

@@ -8,7 +8,7 @@ from appconf import AppConf
class CompressorConf(AppConf):
# Main switch
ENABLED = False
ENABLED = not settings.DEBUG
# Allows changing verbosity from the settings.
VERBOSE = False
# GET variable that disables compressor e.g. "nocompress"
@@ -64,9 +64,6 @@ class CompressorConf(AppConf):
class Meta:
prefix = 'compress'
def configure_enabled(self, value):
return value or not settings.DEBUG
def configure_root(self, value):
if value is None:
value = getattr(settings, 'STATIC_ROOT', None)