Installation

Requirements

Django Dispatch requires:

  • Python 3.8 or newer

  • Django 3.2 or newer

  • Redis (for the Redis Stream backend)

Installing Django Dispatch

You can install Django Dispatch using pip:

pip install django-broadcaster

Or if you’re using uv:

uv add django-broadcaster

Adding to Your Django Project

  1. Add django_broadcaster to your INSTALLED_APPS in your Django settings:

    INSTALLED_APPS = [
        # ... other apps
        'django_broadcaster',
    ]
    
  2. Run migrations to create the necessary database tables:

    python manage.py migrate django_broadcaster
    
  3. Configure the publisher backends in your Django settings (see Configuration for details):

    OUTBOX_PUBLISHERS = {
        'default': {
            'BACKEND': 'django_broadcaster.backends.RedisStreamBackend',
            'OPTIONS': {
                'host': 'localhost',
                'port': 6379,
                'stream_name': 'events',
            }
        }
    }
    

Next Steps

Once you have installed Django Dispatch, you can: