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
|