From a3d7efaa6b9ef7074c81ddcd814ddb39834f5473 Mon Sep 17 00:00:00 2001 From: fsw Date: Fri, 30 Aug 2013 09:26:17 +0200 Subject: [PATCH 1/2] changed DEBUG_TOGGLE from 'None' to None --- compressor/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compressor/conf.py b/compressor/conf.py index 63bf86b..121094e 100644 --- a/compressor/conf.py +++ b/compressor/conf.py @@ -12,7 +12,7 @@ class CompressorConf(AppConf): # Allows changing verbosity from the settings. VERBOSE = False # GET variable that disables compressor e.g. "nocompress" - DEBUG_TOGGLE = 'None' + DEBUG_TOGGLE = None # the backend to use when parsing the JavaScript or Stylesheet files PARSER = 'compressor.parser.AutoSelectParser' OUTPUT_DIR = 'CACHE' From 8aa8ee02bbfb3fd63a28483533842ffb31a5b687 Mon Sep 17 00:00:00 2001 From: fsw Date: Fri, 30 Aug 2013 09:41:30 +0200 Subject: [PATCH 2/2] fix tests for DEBUG_TOGGLE --- compressor/tests/test_templatetags.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compressor/tests/test_templatetags.py b/compressor/tests/test_templatetags.py index c5f88f2..db0d1b7 100644 --- a/compressor/tests/test_templatetags.py +++ b/compressor/tests/test_templatetags.py @@ -99,6 +99,7 @@ class TemplatetagTestCase(TestCase): {% endcompress %}""" self.assertRaises(TemplateSyntaxError, render, template, {}) + @override_settings(COMPRESS_DEBUG_TOGGLE='togglecompress') def test_debug_toggle(self): template = """{% load compress %}{% compress js %}