| 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 |
|
| 6 |
|
| 7 |
class StaticFilesConfig(AppConfig): |
| 8 |
name = "django.contrib.staticfiles" |
| 9 |
verbose_name = _("Static Files") |
| 10 |
ignore_patterns = ["CVS", ".*", "*~"] |
| 11 |
|
| 12 |
def ready(self): |
| 13 |
checks.register(check_finders, checks.Tags.staticfiles) |
| 14 |
checks.register(check_storages, checks.Tags.staticfiles) |