Skip to content

Commit 9994e84

Browse files
committed
添加js/css压缩
1 parent c42f708 commit 9994e84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

DjangoBlog/settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@
283283
'compressor.finders.CompressorFinder',
284284
)
285285
COMPRESS_ENABLED = True
286-
#COMPRESS_OFFLINE = True
286+
COMPRESS_OFFLINE = True
287+
287288

288-
"""
289289
COMPRESS_CSS_FILTERS = [
290290
#creates absolute urls from relative ones
291291
'compressor.filters.css_default.CssAbsoluteFilter',
@@ -295,4 +295,3 @@
295295
COMPRESS_JS_FILTERS = [
296296
'compressor.filters.jsmin.JSMinFilter'
297297
]
298-
"""

0 commit comments

Comments
 (0)