Skip to content
Browse files

Added Celery settings.

  • Loading branch information...
1 parent 78401c2 commit bf5022e2fb755f9da84a3417c151324dfc692225 zyegfryed committed Apr 19, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 saas/templates/local_settings.py.erb
View
9 saas/templates/local_settings.py.erb
@@ -35,8 +35,17 @@ NEW_USER_NOTIFICATION_EMAILS = ('<%= user['email'] %>',)
HAYSTACK_SOLR_URL = config['solr']['path']
SEARCH_QUEUE_NAME = 'haystack_search_queue:<%= name %>'
+BROKER_URL = "redis://%s:%s" % (config['redis']['host'], config['redis']['port'])
QUEUE_REDIS_CONNECTION = '%s:%s' % (config['redis']['host'], config['redis']['port'])
+CELERY_QUEUES = {
+ '<%= name %>': {
+ 'exchange': 'direct',
+ 'binding_key': '<%= name %>',
+ }
+}
+CELERY_DEFAULT_QUEUE = '<%= name %>'
+
SENTRY_DSN = 'http://b497015976ad412ca4a8704cf2ec41f4:94f56ab8ecd545b4940ffe4632ac984b@sentry.hyperweek.com/1'
MEDIA_ROOT = '/mnt/%s/<%= name %>' % config['s3']['bucket']

0 comments on commit bf5022e

Please sign in to comment.
Something went wrong with that request. Please try again.