Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

Commit 76ea5c1

Browse files
author
Sebastian Vetter
committed
Switch LESS compression off in sandbox
Fixes #4.
1 parent ae671ea commit 76ea5c1

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

sandbox/sandbox/settings.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,16 @@
117117
WSGI_APPLICATION = 'sandbox.wsgi.application'
118118

119119
# Compressor and pre-compiler settings for django-compressor
120-
COMPRESS_ENABLED = DEBUG
121-
COMPRESS_OUTPUT_DIR = 'cache'
122-
COMPRESS_OFFLINE = False
120+
USE_LESS = False
123121

124-
COMPRESS_PRECOMPILERS = (
125-
('text/coffeescript', 'coffee --compile --stdio'),
126-
('text/less', 'lessc {infile} {outfile}'),
127-
)
122+
COMPRESS_ENABLED = False
123+
COMPRESS_OFFLINE = False
124+
COMPRESS_PRECOMPILERS = [('text/less', 'lessc {infile} {outfile}')]
128125

129-
if DEBUG:
130-
COMPRESS_JS_FILTERS = []
126+
COMPRESS_OFFLINE_CONTEXT = {
127+
'STATIC_URL': 'STATIC_URL',
128+
'use_less': USE_LESS,
129+
}
131130

132131
from oscar import OSCAR_MAIN_TEMPLATE_DIR
133132

0 commit comments

Comments
 (0)