From 5abef2921de3cead5413883e5813fb48a82477a7 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Sun, 29 Dec 2019 13:37:24 -0500 Subject: Fix Docs Import to include route --- docs/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.1