from django.apps import AppConfig


class ExamsConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'exams'

    def ready(self):
        # Register authentication signal receivers (Section 11).
        # Standards: OWASP ASVS 5.0 3.2; ISO 27001 A.8.15.
        from . import signals  # noqa: F401
        try:
            from . import kc_firewall  # noqa: F401
        except Exception as exc:
            import logging
            logging.getLogger("exams.kc_firewall").error(
                "kc_firewall failed to load; firewall is OFFLINE: %s", exc
            )
