def make_app(global_conf, full_stack=True, **app_conf):
    app = make_base_app(global_conf, full_stack=True, **app_conf)
    
    # Wrap your base TurboGears 2 application with custom middleware here
    from depot.manager import DepotManager
    app = DepotManager.make_middleware(app)

    return app
Set depotexample up with the settings found in the PasteDeploy configuration
dataset/ETHPy150Open amol-/depot/examples/turbogears/depotexample/config/middleware.py/make_app