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:
parent
e5f3df1047
commit
6468a43840
ietf
|
@ -121,7 +121,7 @@ COMPONENT_ROOT = STATIC_ROOT
|
||||||
STATICFILES_FINDERS = (
|
STATICFILES_FINDERS = (
|
||||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||||
'ietf.utils.storage.CdnStorageFinder',
|
'ietf.utils.bower_storage.BowerStorageFinder',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,7 @@ from django.contrib.staticfiles.finders import BaseStorageFinder
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
if settings.SERVER_MODE != 'production':
|
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)
|
storage = FileSystemStorage(location=settings.STATIC_ROOT, base_url=settings.STATIC_URL)
|
Loading…
Reference in a new issue