From 9513514beb293e88e2427234dd0c3ba20b17a2d0 Mon Sep 17 00:00:00 2001 From: Nicholas Antonov Date: Tue, 5 Dec 2017 18:46:18 -0500 Subject: [PATCH] Start adding sass preprocessor --- frontend/templates/base.html | 3 +++ settings/common.py | 6 ++++++ static/scss/test.scss | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 static/scss/test.scss diff --git a/frontend/templates/base.html b/frontend/templates/base.html index a2f38781..f6ad2ade 100644 --- a/frontend/templates/base.html +++ b/frontend/templates/base.html @@ -1,5 +1,6 @@ {% load truncatechars %} +{% load sass_tags %} @@ -9,6 +10,8 @@ {% block extra_css %}{% endblock %} + + diff --git a/settings/common.py b/settings/common.py index b57348bc..fa2d9f59 100644 --- a/settings/common.py +++ b/settings/common.py @@ -182,8 +182,14 @@ INSTALLED_APPS = ( 'transmeta', 'questionnaire', 'questionnaire.page', + 'sass_processor', ) +SASS_PROCESSOR_INCLUDE_DIRS = [ + os.path.join(PROJECT_DIR, 'static/scss'), +] + + # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error. diff --git a/static/scss/test.scss b/static/scss/test.scss new file mode 100644 index 00000000..2d6bbc75 --- /dev/null +++ b/static/scss/test.scss @@ -0,0 +1,3 @@ +* { + color: red !important; +} \ No newline at end of file