MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
-
-DEBUG_TOOLBAR_CONFIG = {
- 'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
-}
########## END TOOLBAR CONFIGURATION
########## COMPRESSION CONFIGURATION
# See: http://django_compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_CSS_FILTERS
COMPRESS_CSS_FILTERS += [
- 'compressor.filters.cssmin.CSSMinFilter',
+ 'compressor.filters.css_default.CssAbsoluteFilter',
]
# See: http://django_compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_JS_FILTERS
COMPRESS_JS_FILTERS += [
- 'compressor.filters.jsmin.JSMinFilter',
+ 'compressor.filters.closure.ClosureCompilerFilter',
]
+COMPRESS_CLOSURE_COMPILER_BINARY = 'java -jar /usr/bin/compiler.jar'
+
+# Links generated by compress are valid for about ten years
+AWS_QUERYSTRING_EXPIRE = 60 * 60 * 24 * 365 * 10
########## END COMPRESSION CONFIGURATION
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
-
-DEBUG_TOOLBAR_CONFIG = {
- 'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
-}
########## END TOOLBAR CONFIGURATION