Skip to content

apps

django_spire.notification.sms.apps

NotificationSmsConfig

Bases: AppConfig

default_auto_field = 'django.db.models.BigAutoField' class-attribute instance-attribute

name = 'django_spire.notification.sms' class-attribute instance-attribute

label = 'django_spire_notification_sms' class-attribute instance-attribute

REQUIRED_APPS = ('django_spire_core', 'django_spire_notification') class-attribute instance-attribute

ready

Source code in django_spire/notification/sms/apps.py
def ready(self) -> None:
    if not isinstance(getattr(settings, TWILIO_SMS_BATCH_SIZE_NAME), int):
        raise ValueError(f'"{TWILIO_SMS_BATCH_SIZE_NAME}" must be set in the django settings when using "{self.label}".')

    check_required_apps(self.label)