Monday, August 6, 2012

How to install django-celery in windows (python, django, celery, erlang, rabbitmq)

A project of mine goes through a realistic simulation that doesn't take too long (15 seconds), but that, unfortunately is about 15 seconds too long. So I had to find a workaround for it. Threads was the first thing that came to mind, but Python is worthless for this....

Anyhow, let's get straight to the point:

***************************************
Install erlang
Install RabbitMQ


pip install kombu
pip install celery
pip install django-celery

the above commands might cause errors for sub-installation of kombu and billiard. If this occurs:

install MinGQ
in the directory for billiard (ex: C:\Users\YOUR_USER_NAME\build\billiard)
run: setup.py install build --compiler=mingw32

then rerun:

pip install kombu
pip install celery
pip install django-celery

then update settings.py according to following link and run SyncDB:
***************************************

Credits: I have Dan (http://www.linkedin.com/pub/dan-ziembienski/17/720/679) to thank for this.