Skip to content

lostcitizen/asgi_rabbitmq

Repository files navigation

asgi_rabbitmq

Build Status Coverage Status

Installation

You can install recent available version from PyPI:

pip install asgi_rabbitmq

Usage

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',
        },
    },
}

url in the example above must be written according to the pika URLParameters documentation.

About

RabbitMQ backend for ASGI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages