title: Celery not connecting to Redis
body: <p>I'm working in a Django project and i'm trying to integrate celery into my project but my app doesn't seem to be able to connect to my redis-server that I'm running locally.</p>
  
  <p>This is what it shows me when I run celery -A project worker.</p>
  
  <pre><code>---- **** ----- 
  --- * ***  * -- Linux-4.15.0-58-generic-x86_64-with-Ubuntu-18.04-bionic 2020-03-18 19:06:29
  -- * - **** --- 
  - ** ---------- [config]
  - ** ---------- .&gt; app:         proyecto_is2:0x7f7c98351518
  - ** ---------- .&gt; transport:   redis://h:**@ec2-34-202-114-79.compute-1.amazonaws.com:17729//
  - ** ---------- .&gt; results:     redis://127.0.0.1:6379/0
  - *** --- * --- .&gt; concurrency: 8 (prefork)
  -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker)
  --- ***** ----- 
  -------------- [queues]
              .&gt; celery           exchange=celery(direct) key=celery
  [2020-03-18 19:31:24,595: ERROR/MainProcess] consumer: Cannot connect to
  redis://h:**@ec2-34-202-114-79.compute-1.amazonaws.com:17729//: Error 110 connecting to
  ec2-34-202-114-79.compute-1.amazonaws.com:17729. Connection timed out..
  </code></pre>
  
  <p>I noticed that the url in transport is not my localhost and I don't know where that got set up.
  I'm using celery 4.3.0, redis 3.2.1.</p>
  
  <p>In my celery.py I have</p>
  
  <pre><code>import os
  from celery import Celery
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proyecto_is2.settings.dev_settings')
  app = Celery('proyecto_is2')
  app.config_from_object('django.conf:settings', namespace='CELERY')
  app.autodiscover_tasks()
  </code></pre>
  
  <p>In my settings i have</p>
  
  <pre><code>... other configs
  CELERY_BROKER_URL = 'redis://127.0.0.1:6379'
  CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379'
  CELERY_ACCEPT_CONTENT = ['application/json']
  CELERY_RESULT_SERIALIZER = 'json'
  CELERY_TASK_SERIALIZER = 'json'
  </code></pre>