title: django.contrib.staticfiles.finders.find help needed
body: <p>I have the following Django project layout:</p>
  
  <pre><code>project_folder/
      app_folder/
          static/
             folder1/
                 file1
          templates/
          ...
      compressor -&gt; (symlink to django_compressor app with my modifications)
      __init__.py
      manage.py
      settings.py
      urls.py
  </code></pre>
  
  <p>From the templatetag specificed in my fork of django_compressor I'm calling a class that does the following:</p>
  
  <pre><code>class StorageMixin(object):
      from django import VERSION as DJANGO_VERSION
      if DJANGO_VERSION[:2] &gt;= (1, 3):
          from django.contrib.staticfiles.finders import find as _django_find
          def _find_file_path(self, path):
              return self._django_find(path)
      else:
          def _find_file_path(self, path):
              static_roots = getattr(settings, 'STATIC_ROOTS', []) + [settings.COMPRESS_ROOT]
              for root in static_roots:
                  filename = os.path.join(root, basename)
                  if os.path.exists(filename):
                      return filename
              return None
  </code></pre>
  
  <p>So, if django is of the new version, it tries to use staticfiles finders, otherwise mimics its basic finder through the STATIC_ROOTS config variable.</p>
  
  <p>Finally, the question: given the folders layout above, I pass <code>"folder1/file1"</code> to <code>finders.find</code> method, and I have the following settings:</p>
  
  <pre><code>INSTALLED_APPS = (
  
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.sites',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  
      'compressor',
      'app_folder',
  )
  </code></pre>
  
  <p>and</p>
  
  <pre><code>TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
  #     'django.template.loaders.eggs.Loader',
  )
  </code></pre>
  
  <p>and I get <code>None</code> from the <code>find</code> call.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPD</strong>. More strange details: I ran </p>
  
  <pre><code>python manage.py shell
  </code></pre>
  
  <p>and did</p>
  
  <pre><code>from django.contrib.staticfiles.finders import find
  find("folder1/file1")
  </code></pre>
  
  <p>And it gave me the correct result...</p>