"No matching file found…" when PIPELINE_ENABLED = True and DEBUG = True
See original GitHub issueI’m not sure if this is a bug or intended behavior but I couldn’t find anything that specifically answered this question. I’m trying to serve the compiled staticfiles through runserver
for debugging. When DEBUG = True
and PIPELINE_ENABLED
is its default value, I can run ./manage.py findstatic css/generated.css
and it will return the correct path.
However, if I override PIPELINE_ENABLED
to be True
and then run ./manage.py findstatic css/generated.css
it returns:
No matching file found for 'css/generated.css'.
Is this intended? It would be great to be able to test compression inside of runserver.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Net Core Seleniun Tests in Azure DevOps- No Files matched ...
Got the below error while running the build pipeline. SYSTEMVSSCONNECTION exists true SYSTEMVSSCONNECTION exists true ##[error]No files matched ...
Read more >ZipDeploy from Azure DevOps task failing in pipeline
My Azure DevOps Pipeline task for ZipDeploy fails for an undisclosed reason and there are no details in the log file explaining the...
Read more >12 Java 2D Pipeline Rendering and Properties
This chapter provides information and guidance for troubleshooting some of the most common issues that might be found in the Java 2D API...
Read more >Package List — Spack 0.20.0.dev0 documentation
Alternatively, add the files to a mirror so that Spack can find them. ... Single and Double Precision Real Arithmetic Versions for Symmetric,...
Read more >PublishTestResults@2 - Publish Test Results v2 task
When this boolean's value is true , the task reports test results from all the files ... The results files can be produced...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having the same issue outlined in the original post. When I’m in
DEBUG=True
I sometimes want to havepipeline
serve compiled/concatenated assets. If I override thePIPELINE_ENABLED=True
the compiled assets are properly referenced the response, but server returns a 404 error for those assets.If
DEBUG=False
and I have previously runcollectstatic
I have no problems (compiled versions are generated and served). If I don’t override thePIPELINE_ENABLED
, I also have no problems – but individual source files are served rather than the compiled version.django-pipeline=1.6.12
There was a change in the Compiler that now (as of 1.4.0) uses the storage to look up the input file before processing, instead of the finder. This means that the input will need to come from the STATIC_ROOT end result of running collectstatic, and not from the STATICFILES_DIRS, where the source files come from: https://github.com/jazzband/django-pipeline/commit/bd6b9d8966a5e00701d3a803c4977f20df7a282d#diff-54b8c27056913aafe149e01ff0aa5e46L35
After this change, it basically requires that the files first are copied into STATIC_ROOT, whereas before they could just be sourced from the original directories. The only way I can get DEBUG=True to work without first running
collectstatic
is like this:It seems like this change in 1.4x made it required in development to copy all files into the STATIC_ROOT on each request, which adds a huge penalty. I wish it would just load out of the source folders like in 1.3.
Another thing, is that if PIPELINE_ENABLED = True, it expects STATIC_ROOT to have files. When it’s turned off, but you have
PIPELINE_COLLECTOR_ENABLED = True
, it will generate the STATIC_ROOT for you, so that’s why it works. But settingPIPELINE_ENABLED = True
skips the check for PIPELINE_COLLECTOR_ENABLED, so it can’t generate the STATIC_ROOT on the fly.See:
https://github.com/jazzband/django-pipeline/blob/master/pipeline/templatetags/pipeline.py#L67-L72
And:
https://github.com/jazzband/django-pipeline/blob/master/pipeline/templatetags/pipeline.py#L97-L98