diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-03-23 18:53:31 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-03-23 18:53:31 -0400 |
commit | 2d45c27d7abcdc9fe91d87adf3a1f62ab41420f0 (patch) | |
tree | 1f24c98c5f293c695c4146c0d91f4e982ffd9922 /askbot/startup_procedures.py | |
parent | ab0e57d06ba77fabad2424dabb0b1028abf0b28f (diff) | |
download | askbot-2d45c27d7abcdc9fe91d87adf3a1f62ab41420f0.tar.gz askbot-2d45c27d7abcdc9fe91d87adf3a1f62ab41420f0.tar.bz2 askbot-2d45c27d7abcdc9fe91d87adf3a1f62ab41420f0.zip |
better compress support on the main and question pages
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r-- | askbot/startup_procedures.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py index 53162421..7b1aa709 100644 --- a/askbot/startup_procedures.py +++ b/askbot/startup_procedures.py @@ -124,7 +124,7 @@ def test_jinja2(): "Please add to the JINJA2_EXTENSIONS list an item:\n" "'%s'," % compressor_ext ) - + print_errors(errors) @@ -326,6 +326,13 @@ def test_compressor(): "('%s', '%s')," % lessc_item ) + js_filters = getattr(django_settings, 'COMPRESS_JS_FILTERS', []) + if len(js_filters) > 0: + errors.append( + 'Askbot does not yet support js minification, please add to your settings.py:\n' + 'COMPRESS_JS_FILTERS = []' + ) + if 'compressor' not in django_settings.INSTALLED_APPS: errors.append( 'add to the INSTALLED_APPS the following entry:\n' |