You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
psrGROUP/env/Lib/site-packages/compressor/utils/staticfiles.py

18 lines
583 B

from django.apps import apps
from django.core.exceptions import ImproperlyConfigured
from compressor.conf import settings
if apps.is_installed("django.contrib.staticfiles"):
from django.contrib.staticfiles import finders # noqa
if "compressor.finders.CompressorFinder" not in settings.STATICFILES_FINDERS:
raise ImproperlyConfigured(
"When using Django Compressor together with staticfiles, "
"please add 'compressor.finders.CompressorFinder' to the "
"STATICFILES_FINDERS setting."
)
else:
finders = None # noqa