__init__.py 545 B

1234567891011121314151617
  1. # Copyright © 2023 Ingram Micro Inc. All rights reserved.
  2. from django.conf import settings
  3. from django.utils.module_loading import import_string
  4. from dj_cqrs.transport.base import BaseTransport
  5. from dj_cqrs.transport.kombu import KombuTransport
  6. from dj_cqrs.transport.rabbit_mq import RabbitMQTransport
  7. try:
  8. current_transport = import_string(settings.CQRS['transport'])
  9. except (AttributeError, ImportError, KeyError):
  10. current_transport = None
  11. __all__ = ['BaseTransport', 'KombuTransport', 'RabbitMQTransport', current_transport]