From 3f76c44e9183106dec161fcaa5d73f3709e99562 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 23 Apr 2014 16:06:58 +0200 Subject: [PATCH] GzipPipelineCachedStorage from fnpdjango. --- wolnelektury/settings/static.py | 2 +- wolnelektury/utils.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) 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 -- 2.20.1