I just went through it so I can shed light on it. You might think that for all the wonderful documents in which some of them would be more obvious.
I assume that you have both RabbitMQ and it works (it must be running), and that you have dj-celery installed.
After that, all you have to do is include this single line in the settings.py file.
BROKER_URL = "amqp://guest: guest@localhost :5672//"
Then you need to run syncdb and run this thing using:
python manage.py celeryd -E -B --loglevel=info
-E
indicates that you want events to be captured, and -B
states that you want celerybeats to function. The former allow you to see something in the admin window, and later to plan. Finally, you need to make sure that you are actually going to capture events and status. Therefore, in another terminal, do the following:
./manage.py celerycam
And finally, finally, you can see the working example presented in the documents. - Again assuming you created task.py that says.
>>> result = add.delay(4, 4) >>> result.ready()
In addition, you can view your status in the admin panel.

Hope this helps! I would add one more thing that helped me. Monitoring the RabbitMQ log file was key, as it helped me determine that django-celery was really talking to RabbitMQ.
source share