from django.apps import AppConfig


class MainConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'main'

    def ready(self):
        """
        Register authentication signals when Django starts up.
        
        This ensures that all authentication events (web login/logout, JWT validation)
        are automatically tracked for user activity monitoring.
        """
        import main.signals  # This registers all the signal receivers
