Python django.conf.settings.STATICFILES_FINDERS Examples

The following are 6 code examples for showing how to use django.conf.settings.STATICFILES_FINDERS(). These examples are extracted from open source projects. 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 check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module django.conf.settings , or try the search function .

Example 1
Project: python-webpack   Author: markfinger   File: apps.py    License: 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
Project: GTDWeb   Author: lanbing510   File: finders.py    License: 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
Project: bioforum   Author: reBiocoder   File: finders.py    License: 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
Project: Hands-On-Application-Development-with-PyCharm   Author: PacktPublishing   File: finders.py    License: 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
Project: openhgsenti   Author: drexly   File: finders.py    License: 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
Project: python2017   Author: bpgc-cte   File: finders.py    License: MIT License 5 votes vote down vote up
def get_finders():
    for finder_path in settings.STATICFILES_FINDERS:
        yield get_finder(finder_path)