Skip to content

apps

django_spire.ai.sms.apps

SmsConfig

Bases: AppConfig

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

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

label = 'django_spire_ai_sms' class-attribute instance-attribute

REQUIRED_APPS = ('django_spire_ai',) class-attribute instance-attribute

ready

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

    check_required_apps(self.label)