New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty output with pipeline.finders #418
Comments
I had the same problem, but I found this thread after some debugging and I found reason for that behaviour. pipeline's finders are doing a good job but only when In debug mode files are not compressed, but should be copied as they are to static root (compilation of less/sass is made later on those copied files). But because of the ignored list from finder classes, static files are not copied to static root for further usage, so This is the course of problems: Because of the above this for is never entered, and paths variable is never filled. The path variable is essential for ruther procedures to render script tags. So basicly I see two options
Unfortunately I don't have time right now for further digging or creating fixing pull request ;/, but I think my observations will help. I am also thinking about inappropriate setting configuration as @addremove suggest, because file finders are able to find those files in static dir inside my apps, so I am not sure if we should blame django for that. |
Right in time after I wrote previous comment it hit me... On production use this:
But for local development this:
But of course it would be nice to have it defined only once. |
Debugging further, I found |
So I changed the finders to the following in my development environment: STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'pipeline.finders.PipelineFinder',
) But because I manage front-end packages with Bower then I get a lot of directories and files in my static tree (for example, the Please see #482 for more information about polluted STATIC_URL directory and slow page load. If someone could answer to give advice or review the ticket that would be great. It seems there are only two of us having this problem or at least speaking about it. |
I have the same problem.... pipeline.finders.* generates empty files while django.contrib.staticfiles.finders.* do generate files correctly but also copies every file in the static dir. |
@samdieck look att #499 it broke things for me |
I have that problem, too. Trying to wrap my head around the issue and looking for options. In the meantime, isn't the first bug here that "invalid" paths in Then at least noticing this problem and troubleshooting it would already get a lot easier. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
The setting below generates empty JS/CSS files in
STATIC_ROOT
The ones below work, but they also copy the source JS/CSS when I run
collectstatic
, which has to be manually removed. Is it a settings issue in my setup or is it a bug in django-pipeline?The text was updated successfully, but these errors were encountered: