diff --git a/settings.py b/settings.py index cb0f4ec..cafb303 100644 --- a/settings.py +++ b/settings.py @@ -225,10 +225,14 @@ if not DEBUG: # CSS / JS Compression COMPRESS_OUTPUT_DIR = 'cache' COMPRESS_JS_FILTERS = [] +COMPRESS_ENABLED = True if DEBUG: COMPRESS_ROOT = os.path.join(BASE_PATH, 'media') else: COMPRESS_ROOT = STATIC_ROOT +COMPRESS_PRECOMPILERS = ( + ('text/x-scss', 'sass --scss {infile} {outfile}'), +) # Extensions if DEBUG: diff --git a/templates/base.html b/templates/base.html index 01567c9..73ae7f7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ {% compress css %} - + {% endcompress %}