#1077 configure wsgi to use local settings