Ask Solem 1f7ddc0423 Can't use sphinx markup in directory readme's %!s(int64=12) %!d(string=hai) anos
..
demoapp 40aadcb9b4 Move Django example one dir below %!s(int64=12) %!d(string=hai) anos
proj 40aadcb9b4 Move Django example one dir below %!s(int64=12) %!d(string=hai) anos
tasks 40aadcb9b4 Move Django example one dir below %!s(int64=12) %!d(string=hai) anos
README.rst 1f7ddc0423 Can't use sphinx markup in directory readme's %!s(int64=12) %!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 ``tasks`` and ``demoapp`` to
``INSTALLED_APPS``

``tasks/``
----------

This app 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. Shared tasks are shared between all Celery
instances.


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

The ``DJANGO_SETTINGS_MODULE`` environment must be set when starting the
worker::

$ DJANGO_SETTINGS_MODULE='proj.settings' celery -A tasks worker -l info