你正在阅读 Celery 3.1 的文档。开发版本文档见: 此处.

Using the Django Database

Experimental Status

The Django database transport is in need of improvements in many areas and there are several open bugs. Sadly we don’t have the resources or funds required to improve the situation, so we’re looking for contributors and partners willing to help.

Installation

Configuration

The database transport uses the Django DATABASE_* settings for database configuration values.

  1. Set your broker transport:

    BROKER_URL = 'django://'
    
  2. Add kombu.transport.django to INSTALLED_APPS:

    INSTALLED_APPS = ('kombu.transport.django', )
    
  3. Sync your database schema:

$ python manage.py syncdb

Limitations

The Django database transport does not currently support:

  • Remote control commands (celery events command, broadcast)
  • Events, including the Django Admin monitor.
  • Using more than a few workers (can lead to messages being executed multiple times).

上一个主题

Using SQLAlchemy

下一个主题

Using MongoDB

本页