apps.py 504 B

1234567891011121314
  1. from django.apps import AppConfig
  2. from django.contrib.staticfiles.checks import check_finders, check_storages
  3. from django.core import checks
  4. from django.utils.translation import gettext_lazy as _
  5. class StaticFilesConfig(AppConfig):
  6. name = "django.contrib.staticfiles"
  7. verbose_name = _("Static Files")
  8. ignore_patterns = ["CVS", ".*", "*~"]
  9. def ready(self):
  10. checks.register(check_finders, checks.Tags.staticfiles)
  11. checks.register(check_storages, checks.Tags.staticfiles)