def wsgi_app(settings, dbsession): from autonomie import base_configure, prepare_config config = prepare_config(**settings) return base_configure(config, dbsession, **settings).make_wsgi_app()