django.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .. _broker-django:
  2. ===========================
  3. Using the Django Database
  4. ===========================
  5. .. _broker-django-installation:
  6. Installation
  7. ============
  8. For the Django database transport support you have to install the
  9. `django-kombu` library::
  10. $ pip install -U django-kombu
  11. .. _broker-django-configuration:
  12. Configuration
  13. =============
  14. The database transport uses the Django `DATABASE_*` settings for database
  15. configuration values.
  16. #. Set your broker transport::
  17. BROKER_URL = "django://"
  18. #. Add :mod:`djkombu` to `INSTALLED_APPS`::
  19. INSTALLED_APPS = ("djkombu", )
  20. #. Verify your database settings::
  21. DATABASE_ENGINE = "mysql"
  22. DATABASE_NAME = "mydb"
  23. DATABASE_USER = "myuser"
  24. DATABASE_PASSWORD = "secret"
  25. The above is just an example, if you haven't configured your database before
  26. you should read the Django database settings reference:
  27. http://docs.djangoproject.com/en/1.1/ref/settings/#database-engine
  28. #. Sync your database schema::
  29. $ python manage.py syncdb
  30. .. _broker-django-limitations:
  31. Limitations
  32. ===========
  33. The Django database transport does not currently support:
  34. * Remote control commands (celeryev, broadcast)
  35. * Events, including the Django Admin monitor.
  36. * Using more than a few workers (can lead to messages being executed
  37. multiple times).