2014-01-05 05:49:35 +08:00
|
|
|
from django.apps import AppConfig
|
2017-01-03 06:35:43 +08:00
|
|
|
from django.contrib.staticfiles.checks import check_finders
|
|
|
|
from django.core import checks
|
2017-01-27 03:58:33 +08:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2014-01-05 05:49:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
class StaticFilesConfig(AppConfig):
|
|
|
|
name = 'django.contrib.staticfiles'
|
2014-03-06 23:03:25 +08:00
|
|
|
verbose_name = _("Static Files")
|
2016-04-16 03:05:06 +08:00
|
|
|
ignore_patterns = ['CVS', '.*', '*~']
|
2017-01-03 06:35:43 +08:00
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
checks.register(check_finders, 'staticfiles')
|