tag:blogger.com,1999:blog-4137806788465333774.post4019481410989430705..comments2024-03-28T00:20:13.536-07:00Comments on Hus to Know?: Installing dj-celery and modifying Django settings...Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4137806788465333774.post-80026239651062728692011-02-25T08:03:24.955-08:002011-02-25T08:03:24.955-08:00Good to know! Yes, it appears that the djcelery.s...Good to know! Yes, it appears that the djcelery.setup_loader() command seems to be extraneous if you import djcelery:<br /><br />https://github.com/ask/django-celery/blob/3cca8386c0a38e9b3e358ecee1a8bf36f3241fd2/djcelery/__init__.py<br /><br />These docs should be revised to only require "import djcelery"<br /><br />http://celeryproject.org/docs/django-celery/changelog.html#id8<br /><br /><br />>>> import djcelery<br />>>> import os<br />>>> os.environ['CELERY_LOADER']<br />'djcelery.loaders.DjangoLoader'Rogerhttps://www.blogger.com/profile/02062579455209464914noreply@blogger.comtag:blogger.com,1999:blog-4137806788465333774.post-86501144653973374472011-02-25T07:41:45.271-08:002011-02-25T07:41:45.271-08:00Thanks! I just ran into this at work. We had a cel...Thanks! I just ran into this at work. We had a celery task that worked fine when invoked from a django-admin shell, or from within the web app, but would not work when invoked from a custom management command. Our solution was to 'import djcelery' at the top of our management command module.Anonymousnoreply@blogger.com