title: Usage of RabbitMQ queues with Django
body: <p>I'm trying to add some real-time features to my Django applications, for that i'm using RabbitMQ and Celery on my django project, so what i would like to do is this: i have an external Python script which sends data to RabbitMQ > from RabbitMQ it should be retrieved from the Django app.</p>
  
  <p>I'm sending some muppet data, like this:</p>
  
  <pre><code>connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
  channel = connection.channel()
  
  channel.queue_declare(queue='Test')
  
  channel.basic_publish(exchange='',
                        routing_key='Test',
                        body='Hello world!')
  
  print(" [x] Sent 'Hello World!'")
  
  connection.close()
  </code></pre>
  
  <p>What i would like to do is: as soon as i send <code>Hello World!</code>, my Django app should receive the string, so that i can perform some operations with it, such as saving it on my database, passing it to an HTML template or simply printing it to my console.</p>
  
  <p>My actual problem is that i still have no idea how to do this. I added Celery to my Django project but i don't know how to connect to RabbitMQ and receive the message. Would i have to do it with Django Channels? Is there some tutorial on this? I found various material about using RabbitMQ and Celery with Django but nothing on this particular matter.</p>