django.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:`django.transport.kombu` to `INSTALLED_APPS`::
  16. INSTALLED_APPS = ("django.transport.kombu", )
  17. #. Verify your database settings::
  18. DATABASE_ENGINE = "mysql"
  19. DATABASE_NAME = "mydb"
  20. DATABASE_USER = "myuser"
  21. DATABASE_PASSWORD = "secret"
  22. The above is just an example, if you haven't configured your database before
  23. you should read the Django database settings reference:
  24. http://docs.djangoproject.com/en/1.1/ref/settings/#database-engine
  25. #. Sync your database schema::
  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 (celeryev, broadcast)
  32. * Events, including the Django Admin monitor.
  33. * Using more than a few workers (can lead to messages being executed
  34. multiple times).