summaryrefslogtreecommitdiffstats
path: root/askbot/startup_procedures.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-04 19:18:24 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-04 19:18:24 -0400
commitd199a0af53e36311ccfd94c9581e00c952e63a0a (patch)
tree5e8c18365a3922d15bea8b626979c224d2a08eaf /askbot/startup_procedures.py
parentd8c42b6689c887cb8aa9850fb16d515ea381fb72 (diff)
downloadaskbot-d199a0af53e36311ccfd94c9581e00c952e63a0a.tar.gz
askbot-d199a0af53e36311ccfd94c9581e00c952e63a0a.tar.bz2
askbot-d199a0af53e36311ccfd94c9581e00c952e63a0a.zip
updated the setup template files
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r--askbot/startup_procedures.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py
index 7d2e0216..31bc5c3d 100644
--- a/askbot/startup_procedures.py
+++ b/askbot/startup_procedures.py
@@ -309,22 +309,24 @@ def test_celery():
def test_compressor():
"""test settings for django compressor"""
- precompilers = getattr(django_settings, 'COMPRESS_PRECOMPILERS', None)
errors = list()
- lessc_item = ('text/less', 'lessc {infile} {outfile}')
- if precompilers is None:
- errors.append(
- 'Please add to your settings.py file: \n'
- 'COMPRESS_PRECOMPILERS = (\n'
- " ('%s', '%s'),\n"
- ')' % lessc_item
- )
- else:
- if lessc_item not in precompilers:
+
+ if getattr(django_settings, 'ASKBOT_CSS_DEVEL', False):
+ precompilers = getattr(django_settings, 'COMPRESS_PRECOMPILERS', None)
+ lessc_item = ('text/less', 'lessc {infile} {outfile}')
+ if precompilers is None:
errors.append(
- 'Please add to the COMPRESS_PRECOMPILERS the following item:\n'
- "('%s', '%s')," % lessc_item
+ 'Please add to your settings.py file: \n'
+ 'COMPRESS_PRECOMPILERS = (\n'
+ " ('%s', '%s'),\n"
+ ')' % lessc_item
)
+ else:
+ if lessc_item not in precompilers:
+ errors.append(
+ 'Please add to the COMPRESS_PRECOMPILERS the following item:\n'
+ "('%s', '%s')," % lessc_item
+ )
js_filters = getattr(django_settings, 'COMPRESS_JS_FILTERS', [])
if len(js_filters) > 0: