git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
settings secret_key from myslice.ini, current_site get the url from request.META...
[unfold.git]
/
unfold
/
collectstatic.py
diff --git
a/unfold/collectstatic.py
b/unfold/collectstatic.py
index
b40afe4
..
bee1fe4
100644
(file)
--- 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
import os
from django.conf import settings
from django.utils.datastructures import SortedDict
@@
-53,6
+55,7
@@
class ThirdPartyFinder(BaseFinder):
'js' : ('.js',),
'css': ('.css',),
'img': ('.png', '.ico',),
'js' : ('.js',),
'css': ('.css',),
'img': ('.png', '.ico',),
+ 'fonts' : ('.svg', '.eot', '.ttf', '.woff'),
}
def find(self, search_path, all=False):
}
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
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
matches.append(matched_path)
return matches