mirror of
https://github.com/Hopiu/django.git
synced 2026-03-27 19:30:24 +00:00
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. |
||
|---|---|---|
| .. | ||
| apps | ||
| project | ||
| urls | ||
| __init__.py | ||
| cases.py | ||
| settings.py | ||
| storage.py | ||
| test_finders.py | ||
| test_forms.py | ||
| test_liveserver.py | ||
| test_management.py | ||
| test_storage.py | ||
| test_templatetags.py | ||
| test_views.py | ||