def main(global_config, **settings):
config = Configurator(settings=settings)<EOL>config.set_session_factory(session_factory)<EOL>config.include('<STR_LIT>')<EOL>config.add_static_view('<STR_LIT>', '<STR_LIT>', cache_max_age=<NUM_LIT>)<EOL>config.add_route('<STR_LIT:index>', '<STR_LIT:/>')<EOL>config.add_route('<STR_LIT>', '<STR_LIT>')<EOL>config.add_route('<STR_LIT>', '<STR_LIT>')<EOL>config.scan()<EOL>return config.make_wsgi_app()<EOL>
This function returns a Pyramid WSGI application.