datatracker/ietf/utils/bower_storage.py
Henrik Levkowetz 7a059c908a Cleaned up bower_storage a bit.
- Legacy-Id: 9952
2015-08-01 15:03:40 +00:00

13 lines
481 B
Python

from django.core.files.storage import FileSystemStorage
from django.contrib.staticfiles.finders import BaseStorageFinder
from django.conf import settings
import debug # pyflakes:ignore
class BowerStorageFinder(BaseStorageFinder):
storage = FileSystemStorage(location=settings.COMPONENT_ROOT, base_url=settings.COMPONENT_URL)
def find(self, path, all=False):
files = super(BowerStorageFinder, self).find(path, all)
return files