File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 77except ImportError :
88 from pipes import quote
99
10+ from django .contrib .staticfiles import finders
1011from django .contrib .staticfiles .storage import staticfiles_storage
1112from django .core .files .base import ContentFile
1213from django .utils .encoding import smart_str , smart_bytes
@@ -33,7 +34,10 @@ def _compile(input_path):
3334 compiler = compiler (verbose = self .verbose , storage = self .storage )
3435 if compiler .match_file (input_path ):
3536 output_path = self .output_path (input_path , compiler .output_extension )
36- infile = self .storage .path (input_path )
37+ try :
38+ infile = self .storage .path (input_path )
39+ except NotImplementedError :
40+ infile = finders .find (input_path )
3741 outfile = self .output_path (infile , compiler .output_extension )
3842 outdated = compiler .is_outdated (input_path , output_path )
3943 try :
You can’t perform that action at this time.
0 commit comments