diff settings.py @ 143:7a27b1c9cb84

Add LESS compilation (toggled in settings) Disabled by default to make development easier, but should be used in production environments.
author dellsystem <ilostwaldo@gmail.com>
date Fri, 12 Oct 2012 22:59:56 -0400
parents be8fec1e85d9
children 3db897f5acdc
line wrap: on
line diff
--- a/settings.py	Fri Oct 12 22:34:35 2012 -0400
+++ b/settings.py	Fri Oct 12 22:59:56 2012 -0400
@@ -24,6 +24,11 @@
 except:
     DEBUG = False
 
+try:
+    COMPILE_LESS = config.get('debug', 'compile_less').lower() != 'no'
+except:
+    COMPILE_LESS = True
+
 TEMPLATE_DEBUG = DEBUG
 
 try:
@@ -123,6 +128,7 @@
 
 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
     'django.core.context_processors.request',
+    'context_processors.less_compilation',
 )
 
 INSTALLED_APPS = (