Skip to content

Commit 7a059c9

Browse files
committed
Cleaned up bower_storage a bit.
- Legacy-Id: 9952
1 parent ec84efe commit 7a059c9

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

ietf/utils/bower_storage.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
from django.contrib.staticfiles.finders import BaseStorageFinder
33
from django.conf import settings
44

5-
if settings.SERVER_MODE != 'production':
6-
# We need this during test and development in order to find the external
7-
# static files which are managed with bower (using manage.py bower_install)
8-
class BowerStorageFinder(BaseStorageFinder):
9-
storage = FileSystemStorage(location=settings.STATIC_ROOT, base_url=settings.STATIC_URL)
5+
import debug # pyflakes:ignore
6+
7+
class BowerStorageFinder(BaseStorageFinder):
8+
storage = FileSystemStorage(location=settings.COMPONENT_ROOT, base_url=settings.COMPONENT_URL)
9+
10+
def find(self, path, all=False):
11+
files = super(BowerStorageFinder, self).find(path, all)
12+
return files

0 commit comments

Comments
 (0)