Skip to content

Commit 3d1fd39

Browse files
Carl Johnsongasman
authored andcommitted
Use staticfiles app for static if possible
Django allows for more complicated staticfiles than just STATIC_URL + path, such as automatically including hashes in filenames. By importing the correct static tag, we can include this behavior.
1 parent a137a2a commit 3d1fd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_libsass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from django.conf import settings
66
from django.contrib.staticfiles.finders import get_finders
7-
from django.templatetags.static import static as django_static
7+
from django.contrib.staticfiles.templatetags.staticfiles import static as django_static
88

99
import sass
1010
from compressor.filters.base import FilterBase

0 commit comments

Comments
 (0)