You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really hope I'm missing something, because after following the install and configuration docs to the letter, I couldn't get pipeline to work under Django 2.2. Static collection worked and files were minimized and placed in my root static directory, but all requests for files returned a 404 error.
Per the install instructions, I have the default Django filesystem and app finders, as well as Pipeline's custom finder in my settings like:
So I dug into all the finders and added breakpoints, and I found something curious in PipelineFinder. The file system finder finds nothing because I have no custom static directories (other than my STATIC_ROOT, which Django's FileSystemFinder doesn't check). The app finder finds nothing because Pipeline's generated files go into the STATIC_ROOT, which doesn't belong to any app. Then it gets to PipelineFinder. On line 15 of pipeline/finders.py is:
def find(self, path, all=False):
if not settings.PIPELINE_ENABLED:
return super(PipelineFinder, self).find(path, all)
else:
return []
If I'm reading this correctly, this is saying "If pipeline is enabled then find no files that pipeline generates". Is that correct? Because if so, that explains why pipeline's broken in Django 2.2. If I modify this to:
then Pipeline works perfectly, and all the minified files generated by collectstatic are correctly found and served. However, I have to assume I'm missing something or misconfigured something, because I can't believe the default finder would purposely not find Pipeline's own minified files.
The text was updated successfully, but these errors were encountered:
I really hope I'm missing something, because after following the install and configuration docs to the letter, I couldn't get pipeline to work under Django 2.2. Static collection worked and files were minimized and placed in my root static directory, but all requests for files returned a 404 error.
Per the install instructions, I have the default Django filesystem and app finders, as well as Pipeline's custom finder in my settings like:
So I dug into all the finders and added breakpoints, and I found something curious in PipelineFinder. The file system finder finds nothing because I have no custom static directories (other than my STATIC_ROOT, which Django's FileSystemFinder doesn't check). The app finder finds nothing because Pipeline's generated files go into the STATIC_ROOT, which doesn't belong to any app. Then it gets to PipelineFinder. On line 15 of pipeline/finders.py is:
If I'm reading this correctly, this is saying "If pipeline is enabled then find no files that pipeline generates". Is that correct? Because if so, that explains why pipeline's broken in Django 2.2. If I modify this to:
then Pipeline works perfectly, and all the minified files generated by collectstatic are correctly found and served. However, I have to assume I'm missing something or misconfigured something, because I can't believe the default finder would purposely not find Pipeline's own minified files.
The text was updated successfully, but these errors were encountered: