title: How to get Celery to load the config from command line?
body: <p>I am attempting to use <code>celery worker</code> to load a config file at the command line:</p>
  
  <p><code>celery worker --config=my_settings_module</code></p>
  
  <p>This doesn't appear to work.  celery worker starts and uses its default settings (which include assuming that there is a RabbitMQ server available at localhost:5672) In my config, I would like to point celery to a different place.  When I change the amqp settings in the config file to something,  Celery didn't appear to care.  It still shows the default RabbitMQ settings.</p>
  
  <p>I also tried something bogus</p>
  
  <p><code>celery worker --config=this_file_does_not_exist</code></p>
  
  <p>And Celery once again did not care.  The worker started and attached to the default RabbitMQ.  It's not even looking at the --config setting</p>
  
  <p>I read about how Celery lazy loads.  I'm not sure that has anything to do with this. </p>
  
  <p>How do I get celery worker to honor the --config setting?</p>