diff options
author | Stephen Daves <contact@stephendaves.com> | 2019-12-29 13:37:24 -0500 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2020-12-31 19:31:36 +0100 |
commit | 5abef2921de3cead5413883e5813fb48a82477a7 (patch) | |
tree | d969076001b898a5a1eaae62ed1c2ebceeb1fd4c | |
parent | 4e78a67564ae080a4f458bd3ebbea12d7127c75e (diff) | |
download | bottle-5abef2921de3cead5413883e5813fb48a82477a7.tar.gz |
Fix Docs Import to include route
-rwxr-xr-x | docs/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 27da2eb..2bc0465 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -354,7 +354,7 @@ The :func:`abort` function is a shortcut for generating HTTP error pages. To redirect a client to a different URL, you can send a ``303 See Other`` response with the ``Location`` header set to the new URL. :func:`redirect` does that for you:: - from bottle import redirect + from bottle import route, redirect @route('/wrong/url') def wrong(): redirect("/right/url") |