Skip to main content

Celery result backends for Django.

Project description

===================================================================== Celery Result Backends using the Django ORM/Cache framework.

|build-status| |coverage| |license| |wheel| |pyversion| |pyimp|

:Version: 2.2.0 :Web: :Download: :Source: :Keywords: django, celery, database, results


This extension enables you to store Celery task results using the Django ORM.

It defines a single model (django_celery_results.models.TaskResult) used to store task results, and you can query this database table like any other Django model.


The installation instructions for this extension is available from the Celery documentation_

.. _Celery documentation:

.. _installation:


You can install django-celery-results either via the Python Package Index (PyPI) or from source.

To install using pip,::

$ pip install -U django-celery-results

.. _installing-from-source:

Downloading and installing from source

Download the latest version of django-celery-results from

You can install it by doing the following,::

$ tar xvfz django-celery-results-0.0.0.tar.gz
$ cd django-celery-results-0.0.0
$ python build
# python install

The last command must be executed as a privileged user if you are not currently using a virtualenv.

.. _installing-from-git:

Using the development version

With pip

You can install the latest snapshot of django-celery-results using the following
pip command::

    $ pip install

Issues with mysql

If you want to run ``django-celery-results`` with MySQL, you might run into some issues.

One such issue is when you try to run ``python migrate django_celery_results``, you might get the following error::

    django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

To get around this issue, you can set::


(or any other value if any other db other than MySQL is causing similar issues.)

max_length of **191** seems to work for MySQL.

.. |build-status| image::
    :alt: Build status

.. |coverage| image::

.. |license| image::
    :alt: BSD License

.. |wheel| image::
    :alt: django-celery-results can be installed via wheel

.. |pyversion| image::
    :alt: Supported Python versions.

.. |pyimp| image::
    :alt: Support Python implementations.

django-celery-results as part of the Tidelift Subscription

The maintainers of django-celery-results and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_celery_results-2.2.0.tar.gz (70.3 kB view hashes)

Uploaded Source

Built Distribution

django_celery_results-2.2.0-py2.py3-none-any.whl (27.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page