Ask Solem 21028bda40 Fixes django tutorial %!s(int64=11) %!d(string=hai) anos
..
demoapp 21028bda40 Fixes django tutorial %!s(int64=11) %!d(string=hai) anos
proj 21028bda40 Fixes django tutorial %!s(int64=11) %!d(string=hai) anos
README.rst 29244168ae Django users do not have to specify DJANGO_SETTINGS_MODULE %!s(int64=11) %!d(string=hai) anos
manage.py 40aadcb9b4 Move Django example one dir below %!s(int64=12) %!d(string=hai) anos

README.rst

==============================================================
Example Django project using Celery
==============================================================

Contents
========

``proj/``
---------

This is the project iself, created using
``django-admin.py startproject proj``, and then the settings module
(``proj/settings.py``) was modified to add ``demoapp`` to
``INSTALLED_APPS``

``proj/celery.py``
----------

This module contains the Celery application instance for this project,
we take configuration from Django settings and use ``autodiscover_tasks`` to
find task modules inside all packages listed in ``INSTALLED_APPS``.

``demoapp/``
------------

Example generic app. This is decoupled from the rest of the project by using
the ``@shared_task`` decorator. This decorator returns a proxy that always
points to the currently active Celery instance.


Starting the worker
===================

.. code-block:: bash

$ celery -A proj worker -l info