This website requires JavaScript.
Explore
Help
Sign In
innov
/
django1
Watch
1
Star
0
Fork
You've already forked django1
0
Code
Issues
Pull Requests
1
Projects
Releases
Wiki
Activity
a6fb81750a
django1
/
tests
/
staticfiles_tests
/
project
/
documents
/
styles_root.css
2 lines
52 B
CSS
Raw
Normal View
History
Unescape
Escape
Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT referenced by absolute URL. collectstatic crashed when: * a hashing static file storage backend was used * a static file referenced another static file located directly in STATIC_ROOT (not a subdirectory) with an absolute URL (which must start with STATIC_URL, which cannot be empty) It seems to me that the current code reimplements relative path joining and doesn't handle edge cases correctly. I suspect it assumes that STATIC_URL is of the form r'/[^/]+/'. Throwing out that code in favor of the posixpath module makes the logic easier to follow. Handling absolute paths correctly also becomes easier.
2016-02-21 03:54:18 +08:00
/* see cached/absolute.css and absolute_root.css */