summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")