Skip to content
apps.py 499 B
Newer Older
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
Dong Zhuang's avatar
Dong Zhuang committed
from course.checks import register_startup_checks_extra, register_startup_checks


class CourseConfig(AppConfig):
    name = 'course'
    # for translation of the name of "Course" app displayed in admin.
    verbose_name = _("Course module")

    def ready(self):
Andreas Klöckner's avatar
Andreas Klöckner committed
        import course.receivers  # noqa
Dong Zhuang's avatar
Dong Zhuang committed

        # register all checks
        register_startup_checks()
        register_startup_checks_extra()