Added django_compress and cssmin to the requirements files and enalbed django_compress for CSS and JS files

This commit is contained in:
Roberto Rosario
2011-10-18 11:03:51 -04:00
parent 5ac70a2100
commit 6c7bc820a6
5 changed files with 23 additions and 3 deletions

View File

@@ -162,6 +162,7 @@ INSTALLED_APPS = (
'job_processor',
'history',
'main',
'compressor',
)
TEMPLATE_CONTEXT_PROCESSORS = (
@@ -173,6 +174,15 @@ TEMPLATE_CONTEXT_PROCESSORS = (
# 'django.contrib.messages.context_processors.messages',
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# other finders..
'compressor.finders.CompressorFinder',
)
COMPRESS_PARSER = 'compressor.parser.HtmlParser'
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter']
#===== User configuration options ===============
#--------- Pagination ------------------
#PAGINATION_DEFAULT_PAGINATION = 10