summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorslobinger <s.lobinger@t-online.de>2020-03-06 11:15:27 +0100
committerGitHub <noreply@github.com>2020-03-06 11:15:27 +0100
commitaa21a252c3b8f5720e1e5d57db5b7ad1239b0cec (patch)
treef9acc21582b915aaa1200ef4d0134fd1206346e5 /docs/narr
parent0c6ed8d93b94f6ed20395ed326a133af7c7770f1 (diff)
downloadpyramid-aa21a252c3b8f5720e1e5d57db5b7ad1239b0cec.tar.gz
pyramid-aa21a252c3b8f5720e1e5d57db5b7ad1239b0cec.tar.bz2
pyramid-aa21a252c3b8f5720e1e5d57db5b7ad1239b0cec.zip
correct configuration.rst add missing route_name
Add missing route_name argument to the call of config.add_view in the imperative configuration example.
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/configuration.rst2
1 files changed, 1 insertions, 1 deletions
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()