~sidnei/python-oops-tools/pin-buildout

« back to all changes in this revision

Viewing changes to buildout-templates/bin/oopstools.wsgi.in

  • Committer: Tarmac
  • Author(s): Robert Collins
  • Date: 2012-09-23 00:55:48 UTC
  • mfrom: (44.1.1 deps)
  • Revision ID: launchpad@pqm.canonical.com-20120923005548-2cfam6qya1bl8loa
0.6.5 - use timeline-django 0.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
from oops_wsgi.django import OOPSWSGIHandler
15
15
 
16
16
application = OOPSWSGIHandler()
 
17
from timeline_django.wsgi import make_app as timeline_django_make_app
17
18
from timeline import wsgi as timeline_wsgi
18
 
from timeline_django.setup import setup_for_requests as timeline_django_setup
19
 
 
20
 
timeline_django_setup()
 
19
pplication = timeline_django_make_app(application)
21
20
application = timeline_wsgi.make_app(application)
22
21
 
 
22
from timeline_django import setup
 
23
setup.setup_for_requests()
 
24
 
23
25
# Report OOPSes back to us.
24
26
from functools import partial
25
27
from oops import Config
36
38
 
37
39
# Attach the timeline to error reports
38
40
import oops_timeline
39
 
from timeline_django.filters import install_hooks
 
41
import timeline_django.filters
40
42
oops_timeline.install_hooks(config)
41
 
install_hooks(config)
 
43
timeline_django.filters.install_hooks(config)
42
44
 
43
45
# Can add custom filters / hooks if needed - see docs.
44
46
factory = partial(amqp.Connection, host=settings.OOPS_WEB_AMQP_HOST,