Add sass processor

This commit is contained in:
Tobias Schulmann 2018-06-04 20:52:51 +12:00
parent 44cc0e356f
commit 3daf623360
2 changed files with 12 additions and 0 deletions

View file

@ -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')

View file

@ -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