Skip to content

Commit 6468a43

Browse files
committed
Moved and renamed the file and class for the storage helper which lets us find static files managed by bower, to better reflect the function.
- Legacy-Id: 9909
1 parent e5f3df1 commit 6468a43

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
STATICFILES_FINDERS = (
122122
'django.contrib.staticfiles.finders.FileSystemFinder',
123123
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
124-
'ietf.utils.storage.CdnStorageFinder',
124+
'ietf.utils.bower_storage.BowerStorageFinder',
125125
)
126126

127127

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
from django.conf import settings
44

55
if settings.SERVER_MODE != 'production':
6-
class CdnStorageFinder(BaseStorageFinder):
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):
79
storage = FileSystemStorage(location=settings.STATIC_ROOT, base_url=settings.STATIC_URL)

0 commit comments

Comments
 (0)