~joetalbott/qa-dashboard/fix_for_15.04

« back to all changes in this revision

Viewing changes to qa_dashboard/settings_base.py

  • Committer: Tarmac
  • Author(s): Joe Talbott, Joe Talbot
  • Date: 2014-10-28 19:56:01 UTC
  • mfrom: (756.2.17 charm_support)
  • Revision ID: tarmac-20141028195601-yyfx9gt3kq008idd
[r=PS Jenkins bot, Evan Dandrea] Add support needed for the soon to be released CI Dashboard Charm.  from Joe Talbott

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
    'django_openid_auth',
196
196
    'django.contrib.staticfiles',
197
197
    'django_tables2',
 
198
    #'pgtools',
198
199
    'south',
199
200
    'tastypie',   # needed for ApiKeyAuthentication in the admin panel
200
201
)
251
252
            'level': 'ERROR',
252
253
            'class': 'django.utils.log.AdminEmailHandler',
253
254
            'filters': ['require_debug_false'],
254
 
        }
 
255
        },
 
256
        'file': {
 
257
            'level': 'INFO',
 
258
            'class': 'logging.FileHandler',
 
259
            'filename': '/tmp/django.log',
 
260
        },
255
261
    },
256
262
    'loggers': {
257
263
        'django.request': {
259
265
            'level': 'ERROR',
260
266
            'propagate': True,
261
267
        },
 
268
        '': {
 
269
            'handlers': ['file'],
 
270
            'level': 'INFO',
 
271
            'propagate': True,
 
272
        },
262
273
    }
263
274
}
264
275
 
284
295
# The AMQP routing key (queue) for OOPS reports.
285
296
oops_amqp_routing_key = 'oopses'
286
297
 
287
 
# The path to store OOPS reports in for http://reports.qa.ubuntu.com, for when
 
298
# The path to store OOPS reports in for http://ci.ubuntu.com, for when
288
299
#storing them in the Rabbit queue fails..
289
 
oops_repository = '/srv/reports.qa.ubuntu.com/oops-local'
 
300
oops_repository = '/srv/ci.ubuntu.com/oops-local'
290
301
 
291
302
# Configuration for OOPS reports.
292
 
oops_config = {
 
303
OOPSES = {
293
304
    'publishers': [
294
305
        {
295
306
            'type': 'amqp',
306
317
            'new_only': True,
307
318
        },
308
319
    ],
 
320
    'template': {'reporter': 'CI-DASHBOARD-DEV'},
309
321
}
310
322
 
311
323
# txstatsd config
326
338
    pass
327
339
 
328
340
try:
329
 
    from amqp_settings import oops_config
 
341
    from amqp_settings import OOPSES
330
342
except ImportError:
331
343
    pass
332
344