Skip to content

Files

Latest commit

Oct 26, 2015
d4e72df · Oct 26, 2015

History

History

django

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 3, 2013
Oct 26, 2015
Nov 11, 2013
Oct 11, 2012

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

$ celery -A proj worker -l info