~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to configs/production/site.wsgi

  • Committer: Marc Tardif
  • Date: 2011-11-23 22:25:12 UTC
  • mfrom: (28.1.2 production)
  • Revision ID: marc.tardif@canonical.com-20111123222512-vru51lvhyg60ueth
Merged production configuration files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
# Initialize our paths.
 
5
import sys
 
6
sys.path.insert(0, "/srv/resultstracker.ubuntu.com/production/build/parts/scripts")
 
7
 
 
8
# Delete the site module from sys instead of reloading it
 
9
# because modules are chained together by their imports
 
10
if "site" in sys.modules:
 
11
    del sys.modules["site"]
 
12
import site
 
13
 
 
14
import os
 
15
os.environ.setdefault("LPRESULTS_TRACKER_SETTINGS", "/srv/resultstracker.ubuntu.com/production/configs/production/settings.conf")
 
16
 
 
17
from lpresults.tracker.wsgi import WSGIHandler
 
18
 
 
19
application = WSGIHandler()