On Wednesday, June 5, 2013 5:42:39 PM UTC+2, Manu wrote: > > Mike, > > Please find my replies below. > > On 5 June 2013 20:27, Mike <mike...@gmail.com <javascript:>> wrote: > >> Thats why I installed it using the package provided in my Ubuntu linux >> server. Then I used the template .conf file (I think from the celery >> documentation) and customized it for my project. I did have some trouble >> to get it running the first time but I think there is a delay between when >> you restart supervisord and when the daemons it controls restart. In fact, >> I don't use the 'restart' command to restart supervisord, I use to 'stop' >> and then confirm that the celery processes have stopped by using 'ps'. >> then I use '/etc/init.d/supervisord start' to start it up again. >> > > Ok, I'll look into that. > >> >> Is your worker running fine when you execute: >> python manage.py celery worker >> ? >> > I'm getting an error that it's unable to import some of the files in my > django project. This, even when I run after activating my virtual > environment. > >> >> >> In your SO question you say that you have set up /etc/default/celeryd but you don't need this for running celery in a Django project. In your settings.py file you should have this:
import djcelery djcelery.setup_loader() BROKER_URL = 'amqp://guest:guest@localhost:5672//' (BROKER_URL should be set to whatever broker you're using) your INSTALLED_APPS should also have 'djcelery' get the command 'python manage.py celery worker' working first, before you mess around with supervisor or init scripts. If you can't run a worker on the command line it probably won't work in a daemon either. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.