add application object into ns only when using uwsgi and gunicorn

This commit is contained in:
Martin Zimmermann 2013-11-29 14:22:21 +01:00
parent baabd30e74
commit 6e31111554

View File

@ -225,4 +225,5 @@ def main():
wsgi.SocketHTTPServer(sock, make_app(conf)).serve_forever() wsgi.SocketHTTPServer(sock, make_app(conf)).serve_forever()
application = make_app(Config.load(os.environ.get('ISSO_SETTINGS'))) if sys.argv[0].endswith(("uwsgi", "gunicorn")):
application = make_app(Config.load(os.environ.get('ISSO_SETTINGS')))