summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Daves <contact@stephendaves.com>2019-12-29 13:37:24 -0500
committerMarcel Hellkamp <marc@gsites.de>2020-12-31 19:31:36 +0100
commit5abef2921de3cead5413883e5813fb48a82477a7 (patch)
treed969076001b898a5a1eaae62ed1c2ebceeb1fd4c
parent4e78a67564ae080a4f458bd3ebbea12d7127c75e (diff)
downloadbottle-5abef2921de3cead5413883e5813fb48a82477a7.tar.gz
Fix Docs Import to include route
-rwxr-xr-xdocs/tutorial.rst2
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")