notifications/backends/__init__.py
# Optional dependencies are wrapped in try/excepts to prevent
# ImportErrors if the user hasn't installed them
# Surely, there's a better way to handle this :/
try:
from .rq import RQBackend as RQ # noqa
except ImportError:
pass
try:
from .celery import CeleryBackend as Celery # noqa
except ImportError:
pass
try:
from .django_channels import ChannelsBackend as Channels # noqa
except ImportError:
pass
try:
from .aws_sqs_lambda import AwsSqsLambdaBackend as AwsSqsLambda # noqa
except ImportError:
pass
from .console import ConsoleBackend as Console # noqa
from .synchronous import SynchronousBackend as Synchronous # noqa