Move rabbitmq username into settings.py

(imported from commit f9a8f80f53b8774781b8558444e601567cb59835)
This commit is contained in:
Zev Benjamin 2013-10-24 13:08:28 -04:00
parent a463d2a386
commit ec21275b19
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class SimpleQueueClient(object):
def _get_parameters(self):
return pika.ConnectionParameters('localhost',
credentials = pika.PlainCredentials(
'humbug', settings.RABBITMQ_PASSWORD))
settings.RABBITMQ_USERNAME, settings.RABBITMQ_PASSWORD))
def _generate_ctag(self, queue_name):
return "%s_%s" % (queue_name, str(random.getrandbits(16)))

View File

@ -446,6 +446,7 @@ PIPELINE_YUI_BINARY = '/usr/bin/env yui-compressor'
USING_RABBITMQ = DEPLOYED
RABBITMQ_USERNAME = 'humbug'
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"