Static files management / LessCSS compiler / Bootstrap import

This commit is contained in:
Raphael Michel
2014-09-10 20:57:04 +02:00
parent 4493102049
commit cd08316f2e
8 changed files with 45 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ INSTALLED_APPS = (
'tixlbase',
'tixlcontrol',
'tixlpresale',
'compressor',
)
MIDDLEWARE_CLASSES = (
@@ -92,6 +93,24 @@ LOGIN_URL_CONTROL = '/control/login'
STATIC_URL = '/static/'
STATIC_ROOT = '_static'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
)
COMPRESS_PRECOMPILERS = (
('text/less', 'lessc {infile} {outfile}'),
)
COMPRESS_CSS_FILTERS = (
'compressor.filters.css_default.CssAbsoluteFilter',
'compressor.filters.cssmin.CSSMinFilter',
)
try:
from local_settings import *
except ImportError: