I'm using django 1.3 with celery. I followed the instruction in http://celery.readthedocs.org/en/latest/django/first-steps-with-django.html
but old version django project structure is different, and it complains KeyError, below is the demo project myproj structure
.
├── app1
│ ├── __init__.py
│ ├── models.py
│ ├── tasks.py
│ ├── tests.py
│ ├── views.py
├── __init__.py
├── manage.py
├── mycelery.py
├── settings.py
├── urls.py
When I send a task from the web, it failed KeyError: 'myproj.app1.tasks.add'.
However it's ok when I send a task from python manage.py shell
>>> from app1.tasks import add
>>> result = add.apply_async(args=[1,2], countdown=30)
>>> result.ready() #wait for 30 seconds
True
>>> result.get()
3
Here is my code https://gist.github.com/dengshuan/a4adc7b690e101da0520
tasksnottask. – levi Sep 2 '14 at 1:48