diff options
author | Rob Austein <sra@hactrn.net> | 2013-04-05 22:36:23 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2013-04-05 22:36:23 +0000 |
commit | b9ea94e261276a1da6ab9d4242d39b6f99894218 (patch) | |
tree | 2ea452d13d3017635f2ea8a406f6320df8791a60 /rpkid/portal-gui/rpki.wsgi | |
parent | 52b5cb0ad90b445c44c4797c688b46012c3240bc (diff) |
Consolidate list of scripts for setup.py to install into setup.py, get
rid of a lot of Makefile.in code that no longer serves any useful
purpose.
svn path=/trunk/; revision=5285
Diffstat (limited to 'rpkid/portal-gui/rpki.wsgi')
-rw-r--r-- | rpkid/portal-gui/rpki.wsgi | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/rpkid/portal-gui/rpki.wsgi b/rpkid/portal-gui/rpki.wsgi new file mode 100644 index 00000000..37bed594 --- /dev/null +++ b/rpkid/portal-gui/rpki.wsgi @@ -0,0 +1,31 @@ +# Copyright (C) 2010, 2011 SPARTA, Inc. dba Cobham Analytic Solutions +# Copyright (C) 2012, 2013 SPARTA, Inc. a Parsons Company +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND SPARTA DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS. IN NO EVENT SHALL SPARTA BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +# This is an example wsgi application for use with mod_wsgi and apache. + +__version__ = '$Id$' + +import sys +import os +import rpki.autoconf + +os.environ['DJANGO_SETTINGS_MODULE'] = 'rpki.gui.default_settings' +# needed for local_settings.py +sys.path.insert(1, rpki.autoconf.sysconfdir + '/rpki') + +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() + +# vim:ft=python |