Commit 0bd91fc2 by Timothée Peignier

Ensure the finders don't mess with collectstatic.

parent e779940c
......@@ -10,6 +10,17 @@ from pipeline.conf import settings
class PipelineFinder(BaseStorageFinder):
storage = staticfiles_storage
def find(self, path, all=False):
if not settings.PIPELINE_ENABLED:
return super(PipelineFinder, self).find(path, all)
else:
return []
def list(self, ignore_patterns):
if not settings.PIPELINE_ENABLED:
return super(PipelineFinder, self).list(ignore_patterns)
else:
return []
class ManifestFinder(BaseFinder):
def find(self, path, all=False):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment