From a1900e875bc29d53d7fd6c513e019a19f76fc291 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 26 Oct 2021 11:10:12 +0200 Subject: [PATCH 1/2] Do not use Six from Django --- django_pyscss/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_pyscss/compiler.py b/django_pyscss/compiler.py index cf20595..9437d90 100644 --- a/django_pyscss/compiler.py +++ b/django_pyscss/compiler.py @@ -3,7 +3,7 @@ import os from pathlib import PurePath -from django.utils.six.moves import StringIO +from six.moves import StringIO from django.conf import settings from django.contrib.staticfiles.storage import staticfiles_storage From d93b4cae31a1364c0f2ef6a9a2dfb82a2b4ba0ed Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 26 Oct 2021 11:10:32 +0200 Subject: [PATCH 2/2] Rename stasticfiles into static --- tests/test_compressor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_compressor.py b/tests/test_compressor.py index aa554fe..1ed3874 100644 --- a/tests/test_compressor.py +++ b/tests/test_compressor.py @@ -4,14 +4,14 @@ APP2_LINK_TAG = """ -{% load staticfiles compress %} +{% load static compress %} {% compress css %} {% endcompress %} """ IMPORT_APP2_STYLE_TAG = """ -{% load staticfiles compress %} +{% load static compress %} {% compress css %}