X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/048c03a936a31dc5e1a1f14a8e2541e7fb28882d..3306216e9d0c249c2699275aad212a7c4c3cc4a7:/wolnelektury/settings/static.py diff --git a/wolnelektury/settings/static.py b/wolnelektury/settings/static.py index 0a520ad7e..81e15f82b 100644 --- a/wolnelektury/settings/static.py +++ b/wolnelektury/settings/static.py @@ -15,8 +15,8 @@ STATIC_URL = '/static/' # CSS and JavaScript file groups - -PIPELINE_CSS = { +PIPELINE = { + 'STYLESHEETS': { 'main': { # styles both for mobile and for big screen 'source_filenames': [ @@ -70,9 +70,8 @@ PIPELINE_CSS = { 'source_filenames': ('scss/widget.scss',), 'output_filename': 'css/compressed/widget.css', }, -} - -PIPELINE_JS = { + }, + 'JAVASCRIPT': { 'base': { 'source_filenames': ( 'js/contrib/jquery.cycle.min.js', @@ -149,19 +148,27 @@ PIPELINE_JS = { ), 'output_filename': 'js/widget.min.js', }, + }, + 'CSS_COMPRESSOR': None, + 'JS_COMPRESSOR': 'pipeline.compressors.jsmin.JSMinCompressor', + 'COMPILERS': ( + 'pipeline.compilers.sass.SASSCompiler', + # We could probably use PySCSS instead, + # but they have some serious problems, like: + # https://github.com/Kronuz/pyScss/issues/166 (empty list syntax) + # https://github.com/Kronuz/pyScss/issues/258 (bad @media order) + #'pyscss_compiler.PySCSSCompiler', + ) } STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage' -PIPELINE_CSS_COMPRESSOR = None -PIPELINE_JS_COMPRESSOR = None - -PIPELINE_COMPILERS = ( - 'pipeline.compilers.sass.SASSCompiler', - # We could probably use PySCSS instead, - # but they have some serious problems, like: - # https://github.com/Kronuz/pyScss/issues/166 (empty list syntax) - # https://github.com/Kronuz/pyScss/issues/258 (bad @media order) - #'pyscss_compiler.PySCSSCompiler', -) + #PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss' #PIPELINE_PYSCSS_ARGUMENTS = '' + + +STATICFILES_FINDERS = [ + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', + 'pipeline.finders.PipelineFinder', +]