东北jimmy的专栏

Jimmy’s tech log

Django + Celery + Rabbitmq setting

The async tasks django framework should be handled by RabbitMQ. Celery is the better one to fit in between.

Before I dump the d*** Ubuntu 11.10, I need to document something here to record the setting of celery for django.

It's very simple for setup and config celery for django. Please refer to Celery documents: http://django-celery.readthedocs.org/en/latest/getting-started/first-steps-with-django.html

But in the tutorial, they missed one line in the setting.py:

CELERY_IMPORTS = ("myapp.jobs", )
You can refer for more details about the setting in http://stackoverflow.com/questions/4643065/why-does-celery-work-in-python-shell-but-not-in-my-django-views-import-proble/6899753#6899753

PS: Don't upgrade to Ubuntu 11.10, unless you are sure that is what u want!!!

阅读更多
文章标签: django ubuntu
个人分类: django celery rabbitmq
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭