Merge pull request #437 from fsw/patch-1

change DEBUG_TOGGLE default value from 'None' to None
This commit is contained in:
Jannis Leidel
2014-01-29 01:01:04 -08:00
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -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 %}
<script src="{{ STATIC_URL }}js/one.js" type="text/javascript"></script>