Added django_compress and cssmin to the requirements files and enalbed django_compress for CSS and JS files
This commit is contained in:
10
settings.py
10
settings.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user