from django.apps import AppConfig


class StiftungConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "stiftung"

    def ready(self):
        # Configure admin site with 2FA support
        try:
            from django_otp.admin import OTPAdminSite
            from django.contrib import admin
            admin.site.__class__ = OTPAdminSite
        except ImportError:
            # django-otp not installed
            pass
        
        # Import signals to register them
        try:
            import stiftung.signals
        except ImportError:
            pass
