RabbitMQ backend for ASGI.
You can install the most recent available version from PyPI:
pip install asgi_rabbitmq
To use RabbitMQ broker as your channels layer add following lines to your django settings
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'asgi_rabbitmq.RabbitmqChannelLayer',
# Change according to your project layout:
'ROUTING': 'myproject.routing.routes',
'CONFIG': {
'url': 'amqp://guest:guest@rabbitmq:5672/%2F',
},
},
}
Now you can use channels project as usual:
daphne myproject.asgi:channel_layer django-admin runworker
ASGI RabbitMQ layer is offered under 3-terms BSD license.