# -*- coding: utf-8 -*-
"""
Campaigns App Configuration

Django app configuration for the campaigns application.
Handles app-specific settings and initialization.
"""

from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _


class CampaignsConfig(AppConfig):
    """
    Configuration class for the campaigns app.
    
    This class defines the configuration for the campaigns application,
    including the app name, verbose name, and default auto field type.
    """
    
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'apps.campaigns'
    verbose_name = _('Campaigns')
    
    def ready(self):
        """
        Perform initialization when the app is ready.
        
        This method is called when Django starts up and the app is ready.
        It's used to import signal handlers and perform other initialization tasks.
        """
        try:
            # Import signal handlers
            import apps.campaigns.signals  # noqa F401
        except ImportError:
            pass