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
This commit is contained in:
Henrik Levkowetz 2015-07-28 10:40:26 +00:00
parent e5f3df1047
commit 6468a43840
2 changed files with 4 additions and 2 deletions

View file

@ -121,7 +121,7 @@ COMPONENT_ROOT = STATIC_ROOT
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'ietf.utils.storage.CdnStorageFinder',
'ietf.utils.bower_storage.BowerStorageFinder',
)

View file

@ -3,5 +3,7 @@ from django.contrib.staticfiles.finders import BaseStorageFinder
from django.conf import settings
if settings.SERVER_MODE != 'production':
class CdnStorageFinder(BaseStorageFinder):
# We need this during test and development in order to find the external
# static files which are managed with bower (using manage.py bower_install)
class BowerStorageFinder(BaseStorageFinder):
storage = FileSystemStorage(location=settings.STATIC_ROOT, base_url=settings.STATIC_URL)