From aa21a252c3b8f5720e1e5d57db5b7ad1239b0cec Mon Sep 17 00:00:00 2001 From: slobinger Date: Fri, 6 Mar 2020 11:15:27 +0100 Subject: correct configuration.rst add missing route_name Add missing route_name argument to the call of config.add_view in the imperative configuration example. --- docs/narr/configuration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst index 80bfa159c..c4a43f30b 100644 --- a/docs/narr/configuration.rst +++ b/docs/narr/configuration.rst @@ -49,7 +49,7 @@ configured imperatively: if __name__ == '__main__': with Configurator() as config: config.add_route('hello', '/') - config.add_view(hello_world) + config.add_view(hello_world, route_name='hello') app = config.make_wsgi_app() server = make_server('0.0.0.0', 6543, app) server.serve_forever() -- cgit v1.2.3