From: Radek Czajka Date: Wed, 23 Apr 2014 14:06:58 +0000 (+0200) Subject: GzipPipelineCachedStorage from fnpdjango. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/3f76c44e9183106dec161fcaa5d73f3709e99562?ds=inline GzipPipelineCachedStorage from fnpdjango. --- diff --git a/wolnelektury/settings/static.py b/wolnelektury/settings/static.py index 2bfcd259b..7ea3d70e5 100644 --- a/wolnelektury/settings/static.py +++ b/wolnelektury/settings/static.py @@ -140,7 +140,7 @@ PIPELINE_JS = { } -STATICFILES_STORAGE = 'wolnelektury.utils.GzipPipelineCachedStorage' +STATICFILES_STORAGE = 'fnpdjango.utils.pipeline_storage.GzipPipelineCachedStorage' PIPELINE_CSS_COMPRESSOR = None PIPELINE_JS_COMPRESSOR = None diff --git a/wolnelektury/utils.py b/wolnelektury/utils.py index e06fb1d87..0c256e5df 100644 --- a/wolnelektury/utils.py +++ b/wolnelektury/utils.py @@ -5,8 +5,6 @@ import pytz from django.utils import timezone from django.conf import settings -from pipeline.storage import GZIPMixin -from pipeline.storage import PipelineCachedStorage tz = pytz.timezone(settings.TIME_ZONE) @@ -17,6 +15,3 @@ def localtime_to_utc(localtime): def utc_for_js(dt): return dt.strftime('%Y/%m/%d %H:%M:%S UTC') - -class GzipPipelineCachedStorage(GZIPMixin, PipelineCachedStorage): - pass