{"issue":{"created_at":"2011-12-12T01:46:28Z","state":"closed","updated_at":"2011-12-12T21:39:13Z","comments":0,"user":{"gravatar_id":"9ecc68290355104cddd944f427cce277","id":597739,"url":"https://api.github.com/users/gremmie","login":"gremmie","avatar_url":"https://secure.gravatar.com/avatar/9ecc68290355104cddd944f427cce277?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm using django-celery, and I have my settings arranged in a package directory. So I typically run management commands like this:\r\n\r\n    $ python manage.py command --settings=settings.production\r\n\r\nIf I try to run:\r\n\r\n    $ python manage.py celeryd_multi start w1 --settings=settings.production\r\n\r\nI see this output:\r\n\r\n```celeryd-multi v2.4.5\r\n> Starting nodes...\r\n\t> w1.example.com: Unknown command: 'celeryd_detach'\r\nType 'manage.py help' for usage.\r\n* Child terminated with failure code 1\r\nFAILED\r\n```\r\n\r\nI stepped into the celeryd_multi.py code and I see it try to do a Popen(), but the `--settings=settings.production` argument has already been stripped off by djcelery's `CeleryCommand.handle_default_options`.  Since this is now missing, the manage.py command can't find my settings file, it seems, and thus it can't find the djcelery app and thus the unknown command 'celeryd_detach'.\r\n\r\nBy playing around in the debugger, if I manually add back on `--settings=settings.production` then the Popen() succeeds and everything works.\r\n\r\nShould the --settings argument be stripped off? \r\n\r\nThanks.\r\n\r\n","assignee":null,"number":94,"id":2518792,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Problems with celeryd_multi when using a Django settings package","html_url":"https://github.com/ask/django-celery/issues/94","closed_at":"2011-12-12T21:39:13Z","url":"https://api.github.com/repos/ask/django-celery/issues/94","milestone":null},"action":"closed"}