File: finders.py

package info (click to toggle)
django-sass-processor 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: python: 763; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.contrib.staticfiles.finders import BaseStorageFinder
from .storage import SassFileStorage


class CssFinder(BaseStorageFinder):
    """
    Find static *.css files compiled on the fly using templatetag `{% sass_src "" %}`
    and stored in configured storage.
    """
    storage = SassFileStorage()

    def list(self, ignore_patterns):
        """
        Do not list the contents of the configured storages, since this has already been done by
        other finders.
        This prevents the warning ``Found another file with the destination path ...``, while
        issuing ``./manage.py collectstatic``.
        """
        if False:
            yield