Python django.conf.settings.STATICFILES_FINDERS Examples

The following are 6 code examples of django.conf.settings.STATICFILES_FINDERS(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module django.conf.settings , or try the search function .
Example #1
Source File: apps.py    From python-webpack with MIT License 5 votes vote down vote up
def ready(self):
        if (
            ('staticfiles' in settings.INSTALLED_APPS or 'django.contrib.staticfiles' in settings.INSTALLED_APPS) and
            FINDER_PATH not in settings.STATICFILES_FINDERS
        ):
            raise ImproperlyConfigured(
                (
                    'When using webpack together with staticfiles, please add \'{}\' to the '
                    'STATICFILES_FINDERS setting.'
                ).format(FINDER_PATH)
            )

        webpack.conf.settings.configure(
            **getattr(settings, 'WEBPACK', {})
        ) 
Example #2
Source File: finders.py    From GTDWeb with GNU General Public License v2.0 5 votes vote down vote up
def get_finders():
    for finder_path in settings.STATICFILES_FINDERS:
        yield get_finder(finder_path) 
Example #3
Source File: finders.py    From bioforum with MIT License 5 votes vote down vote up
def get_finders():
    for finder_path in settings.STATICFILES_FINDERS:
        yield get_finder(finder_path) 
Example #4
Source File: finders.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def get_finders():
    for finder_path in settings.STATICFILES_FINDERS:
        yield get_finder(finder_path) 
Example #5
Source File: finders.py    From openhgsenti with Apache License 2.0 5 votes vote down vote up
def get_finders():
    for finder_path in settings.STATICFILES_FINDERS:
        yield get_finder(finder_path) 
Example #6
Source File: finders.py    From python2017 with MIT License 5 votes vote down vote up
def get_finders():
    for finder_path in settings.STATICFILES_FINDERS:
        yield get_finder(finder_path)