From d6fdaea4ed259b36174a8ad592783c442855d60d Mon Sep 17 00:00:00 2001 From: rscnt Date: Fri, 22 May 2015 01:31:44 -0600 Subject: [PATCH] settings: added django_compressor Signed-off-by: rscnt --- dynamicweb/settings.py | 11 +++++++++++ requirements.txt | 2 ++ 2 files changed, 13 insertions(+) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 2dd803c9..375dab94 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -80,6 +80,7 @@ INSTALLED_APPS = ( 'admin_enhancer', 'djangocms_blog', 'bootstrap3', + 'compressor', ) MIDDLEWARE_CLASSES = ( @@ -232,6 +233,16 @@ MIGRATION_MODULES = { 'djangocms_text_ckeditor': 'djangocms_text_ckeditor.migrations_django', } +STATICFILES_FINDERS = ( + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', + 'compressor.finders.CompressorFinder', +) + +COMPRESS_PRECOMPILERS = ( + ('text/less', 'lesscpy {infile}'), +) + THUMBNAIL_PROCESSORS = ( 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', diff --git a/requirements.txt b/requirements.txt index 327f48d8..d9d48cfa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,8 @@ django==1.7.8 #django-assets django-bootstrap3 +lesscpy +django_compressor # django apps django-treebeard==3.0