fix for book form problem
[redakcja.git] / apps / compress / conf / settings.py
1 from django.core.exceptions import ImproperlyConfigured
2 from django.conf import settings
3
4 COMPRESS = getattr(settings, 'COMPRESS', not settings.DEBUG)
5 COMPRESS_AUTO = getattr(settings, 'COMPRESS_AUTO', True)
6 COMPRESS_VERSION = getattr(settings, 'COMPRESS_VERSION', False)
7 COMPRESS_VERSION_PLACEHOLDER = getattr(settings, 'COMPRESS_VERSION_PLACEHOLDER', '?')
8 COMPRESS_VERSION_DEFAULT = getattr(settings, 'COMPRESS_VERSION_DEFAULT', '0')
9 COMPRESS_VERSIONING = getattr(settings, 'COMPRESS_VERSIONING', 'compress.versioning.mtime.MTimeVersioning')
10
11 COMPRESS_CSS_FILTERS = getattr(settings, 'COMPRESS_CSS_FILTERS', ['compress.filters.csstidy.CSSTidyFilter'])
12 COMPRESS_JS_FILTERS = getattr(settings, 'COMPRESS_JS_FILTERS', ['compress.filters.jsmin.JSMinFilter'])
13 COMPRESS_CSS = getattr(settings, 'COMPRESS_CSS', {})
14 COMPRESS_JS = getattr(settings, 'COMPRESS_JS', {})
15
16 if COMPRESS_CSS_FILTERS is None:
17     COMPRESS_CSS_FILTERS = []
18
19 if COMPRESS_JS_FILTERS is None:
20     COMPRESS_JS_FILTERS = []