cyberdelia/django-pipeline — Issue #34: Regression: Paths to STATIC_ROOT must now end in os.sep
Author: cnorthwood
Created: 2011-10-30 19:35:24+00:00
State: open

I've recently updated to the current stable version of django-pipeline and this has broken my Django app. I've traced down the problem to changes to how URLs are generated, I believe in this version: https://github.com/cyberdelia/django-pipeline/commit/074c7b4d9d9e5d27511d64f92d5589949736adb4

My old Django settings.py read as follows:

`
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'compiled_media')
`

however due to the relpath call, the actually directory name gets lost (because it doesn't end in a /), and I now need to use:

STATIC_ROOT = os.path.join(PROJECT_ROOT, 'compiled_media') + os.sep

This is a regression from previous versions and should ideally be fixed (this is likely to impact a number of users of Molly which has this project as a dependency)