def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
<EOL>config = load_environment(global_conf, app_conf)<EOL>app = PylonsApp(config=config)<EOL>app = RoutesMiddleware(app, config['<STR_LIT>'], singleton=False)<EOL>app = SessionMiddleware(app, config)<EOL>if asbool(full_stack):<EOL><INDENT>app = ErrorHandler(app, global_conf, **config['<STR_LIT>'])<EOL>if asbool(config['<STR_LIT>']):<EOL><INDENT>app = StatusCodeRedirect(app)<EOL><DEDENT>else:<EOL><INDENT>app = StatusCodeRedirect(app, [<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>])<EOL><DEDENT><DEDENT>app = RegistryManager(app)<EOL>if asbool(static_files):<EOL><INDENT>static_app = StaticURLParser(config['<STR_LIT>']['<STR_LIT>'])<EOL>app = Cascade([static_app, app])<EOL><DEDENT>app.config = config<EOL>return app<EOL>
Create a Pylons WSGI application and return it

    ``global_conf``
        The inherited configuration for this application. Normally from
        the [DEFAULT] section of the Paste ini file.

    ``full_stack``
        Whether this application provides a full WSGI stack (by default,
        meaning it handles its own exceptions and errors). Disable
        full_stack when this application is "managed" by another WSGI
        middleware.

    ``static_files``
        Whether this application serves its own static files; disable
        when another web server is responsible for serving them.

    ``app_conf``
        The application's local configuration. Normally specified in
        the [app:<name>] section of the Paste ini file (where <name>
        defaults to main).