Installation¶
Dependencies¶
rapidsms-celery-router depends on django-celery. Please follow the django-celery setup instructions before proceeding with these steps.
Setup¶
Install rapidsms-celery-router using Pip:
pip install rapidsms-celery-router
This will install the necessary dependencies, including django-celery and celery, if required.
Set RAPIDSMS_ROUTER
in your project’s settings.py
to use
CeleryRouter
:
RAPIDSMS_ROUTER = "celery_router.router.CeleryRouter"
That’s it! Now all incoming and outgoing messages will be queued using Celery.