~lutostag/ubuntu/utopic/maas/1.5.2

« back to all changes in this revision

Viewing changes to contrib/wsgi.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-03-07 12:46:17 UTC
  • mto: (20.1.1 quantal) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20120307124617-tdctc6l9bur4f2ci
Tags: upstream-0.1+bzr232+dfsg
ImportĀ upstreamĀ versionĀ 0.1+bzr232+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
"""WSGI Application."""
 
5
 
 
6
from __future__ import (
 
7
    print_function,
 
8
    unicode_literals,
 
9
    )
 
10
 
 
11
__metaclass__ = type
 
12
__all__ = []
 
13
 
 
14
import os
 
15
import sys
 
16
 
 
17
import django.core.handlers.wsgi
 
18
 
 
19
 
 
20
current_path = os.path.dirname(os.path.abspath(__file__))
 
21
sys.path.append(current_path)
 
22
 
 
23
os.environ['DJANGO_SETTINGS_MODULE'] = 'maas.settings'
 
24
application = django.core.handlers.wsgi.WSGIHandler()