django.rst 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. _broker-django:
  2. ===========================
  3. Using the Django Database
  4. ===========================
  5. .. _broker-django-installation:
  6. Installation
  7. ============
  8. .. _broker-django-configuration:
  9. Configuration
  10. =============
  11. The database transport uses the Django `DATABASE_*` settings for database
  12. configuration values.
  13. #. Set your broker transport::
  14. BROKER_URL = 'django://'
  15. #. Add :mod:`kombu.transport.django` to `INSTALLED_APPS`::
  16. INSTALLED_APPS = ('kombu.transport.django', )
  17. #. Sync your database schema:
  18. .. code-block:: bash
  19. $ python manage.py syncdb
  20. .. _broker-django-limitations:
  21. Limitations
  22. ===========
  23. The Django database transport does not currently support:
  24. * Remote control commands (:program:`celery events` command, broadcast)
  25. * Events, including the Django Admin monitor.
  26. * Using more than a few workers (can lead to messages being executed
  27. multiple times).