Fixed bug introduced in 1.0 with regard to COMPRESS_ENABLED. Fixes #119.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user