Set wsgi name to application

The standard name for the WSGI callable is application, let's use that.
We'll keep app for compatiblity purposes.

Change-Id: I2138ef05b985dcfeba108c8a5441206b2c4ae1a7
This commit is contained in:
Thomas Herve 2017-02-21 18:29:26 -05:00
parent d27e784cfa
commit 871860be98
2 changed files with 3 additions and 2 deletions

View File

@ -156,7 +156,6 @@ function configure_zaqar {
iniset $ZAQAR_UWSGI_CONF uwsgi processes 1
iniset $ZAQAR_UWSGI_CONF uwsgi threads 4
iniset $ZAQAR_UWSGI_CONF uwsgi wsgi-file $ZAQAR_DIR/zaqar/transport/wsgi/app.py
iniset $ZAQAR_UWSGI_CONF uwsgi callable app
iniset $ZAQAR_UWSGI_CONF uwsgi master true
iniset $ZAQAR_UWSGI_CONF uwsgi add-header "Connection: close"

View File

@ -39,4 +39,6 @@ log.setup(conf, 'zaqar')
boot = bootstrap.Bootstrap(conf)
conf.drivers.transport = 'wsgi'
app = boot.transport.app
application = boot.transport.app
# Keep the old name for compatibility
app = application