django.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .. _broker-django:
  2. ===========================
  3. Using the Django Database
  4. ===========================
  5. .. admonition:: Experimental Status
  6. The Django database transport is in need of improvements in many areas
  7. and there are several open bugs. Unfortunately we don't have the resources or funds
  8. required to improve the situation, so we're looking for contributors
  9. and partners willing to help.
  10. .. _broker-django-installation:
  11. Installation
  12. ============
  13. .. _broker-django-configuration:
  14. Configuration
  15. =============
  16. The database transport uses the Django `DATABASE_*` settings for database
  17. configuration values.
  18. #. Set your broker transport::
  19. BROKER_URL = 'django://'
  20. #. Add :mod:`kombu.transport.django` to `INSTALLED_APPS`::
  21. INSTALLED_APPS = ('kombu.transport.django', )
  22. #. Sync your database schema:
  23. .. code-block:: bash
  24. $ python manage.py migrate kombu_transport_django
  25. Or if you are using a version of Django lower than 1.7
  26. $ python manage.py syncdb
  27. .. _broker-django-limitations:
  28. Limitations
  29. ===========
  30. The Django database transport does not currently support:
  31. * Remote control commands (:program:`celery events` command, broadcast)
  32. * Events, including the Django Admin monitor.
  33. * Using more than a few workers (can lead to messages being executed
  34. multiple times).