~ubuntuone-pqm-team/canonical-identity-provider/trunk

« back to all changes in this revision

Viewing changes to wsgiserver.py

  • Committer: Danny Tamez
  • Date: 2010-04-21 15:29:24 UTC
  • Revision ID: danny.tamez@canonical.com-20100421152924-lq1m92tstk2iz75a
Canonical SSO Provider (Open Source) - Initial Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
from wsgiref.simple_server import make_server
 
5
 
 
6
import os
 
7
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
 
8
 
 
9
from identityprovider.wsgi import make_app
 
10
httpd = make_server('', 8000, make_app())
 
11
 
 
12
 
 
13
print "Serving HTTP on port 8000..."
 
14
 
 
15
# Respond to requests until process is killed
 
16
httpd.serve_forever()