X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fcollectstatic.py;h=a3da52af3b87f15c4338c56434f63f8c03523dce;hb=7754e22956030eea92cd32b7dcf1ee5e3cbe330d;hp=b40afe4fbaedc53f2f710d93c8df18b6c1d2e6dd;hpb=9a62ec0dc3ee3e859f3563da29d9c838a658b140;p=myslice.git diff --git a/unfold/collectstatic.py b/unfold/collectstatic.py index b40afe4f..a3da52af 100644 --- a/unfold/collectstatic.py +++ b/unfold/collectstatic.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import os from django.conf import settings from django.utils.datastructures import SortedDict @@ -50,9 +52,10 @@ class ThirdPartyFinder(BaseFinder): # PREFIX : EXTENSIONS # third party stuff is not expected to provide templates, # '' : ('.html',), - 'js' : ('.js',), + 'js' : ('.js','.map',), 'css': ('.css',), 'img': ('.png', '.ico',), + 'fonts' : ('.svg', '.eot', '.ttf', '.woff'), } def find(self, search_path, all=False): @@ -78,7 +81,7 @@ class ThirdPartyFinder(BaseFinder): matched_path = os.path.join(path, file) if not all: return matched_path - print 'ThirdPartyFinder, adding',matched_path + print('ThirdPartyFinder, adding',matched_path) matches.append(matched_path) return matches