Skip to content

Commit

Permalink
Merge pull request #3567 from slobinger/master
Browse files Browse the repository at this point in the history
correct configuration.rst add missing route_name
  • Loading branch information
stevepiercy committed Mar 6, 2020
2 parents 0c6ed8d + aa21a25 commit 48cf45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/narr/configuration.rst
Expand Up @@ -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()
Expand Down

0 comments on commit 48cf45b

Please sign in to comment.