Created
September 15, 2011 02:13
-
-
Save gerardo/1218346 to your computer and use it in GitHub Desktop.
Fix for django_compressor issue #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/compressor/templatetags/compress.py | |
+++ b/compressor/templatetags/compress.py | |
@@ -32,7 +32,9 @@ class CompressorNode(template.Node): | |
exception=ImproperlyConfigured)(*args, **kwargs) | |
def debug_mode(self, context): | |
- if settings.COMPRESS_DEBUG_TOGGLE: | |
+ if settings.DEBUG: | |
+ return True | |
+ elif settings.COMPRESS_DEBUG_TOGGLE: | |
# Only check for the debug parameter | |
# if a RequestContext was used | |
request = context.get('request', None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment