From 3daf6233606bbb863b8930f0f94f873a8678cf75 Mon Sep 17 00:00:00 2001 From: Tobias Schulmann Date: Mon, 4 Jun 2018 20:52:51 +1200 Subject: [PATCH] Add sass processor --- pinaxcon/settings.py | 7 +++++++ requirements.txt | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index ad919985..3e4f3a4d 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -126,6 +126,7 @@ STATICFILES_DIRS = [ STATICFILES_FINDERS = [ "django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder", + "sass_processor.finders.CssFinder", ] TEMPLATES = [ @@ -191,6 +192,7 @@ INSTALLED_APPS = [ # theme "bootstrapform", "pinax_theme_bootstrap", + "sass_processor", # external "easy_thumbnails", @@ -353,6 +355,11 @@ NOSE_ARGS = [ '--cover-package=registrasion.controllers,registrasion.models', ] +SASS_PROCESSOR_INCLUDE_DIRS = [ + os.path.join(PROJECT_ROOT, 'static/src/bootstrap/scss'), + os.path.join(PROJECT_ROOT, 'static/src/scss'), +] + xmlsec_binary = '/usr/bin/xmlsec1' if not os.path.isfile(xmlsec_binary): sys.exit('ERROR: xmlsec1 binary missing, EXITING') diff --git a/requirements.txt b/requirements.txt index 4f1f9a32..03b27009 100644 --- a/requirements.txt +++ b/requirements.txt @@ -43,3 +43,8 @@ requests>=2.11.1 stripe==1.38.0 django-waffle>=0.12.0 + + +# SASS Compiler and template tags +libsass==0.14.5 +django-sass-processor==0.7