From 9f178413c0d46c06683691674b8679d6268a30b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Fri, 26 Jul 2013 05:11:42 +0200 Subject: docs: removed unused import --- docs/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index c5930a6..c8b8c71 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -93,7 +93,7 @@ The Default Application For the sake of simplicity, most examples in this tutorial use a module-level :func:`route` decorator to define routes. This adds routes to a global "default application", an instance of :class:`Bottle` that is automatically created the first time you call :func:`route`. Several other module-level decorators and functions relate to this default application, but if you prefer a more object oriented approach and don't mind the extra typing, you can create a separate application object and use that instead of the global one:: - from bottle import Bottle, run, template + from bottle import Bottle, run app = Bottle() -- cgit v1.2.1 From b7ef72b9ca945e51ee2835e4043c8a367398e2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Fri, 26 Jul 2013 18:31:31 +0200 Subject: docs: Make html example consistent with the according python code. --- docs/tutorial.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index c8b8c71..5e4bb0e 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -597,9 +597,9 @@ Let us start from the beginning. In HTML, a typical ``
`` looks something l .. code-block:: html - - - + Login: + Password: +
The ``action`` attribute specifies the URL that will receive the form data. ``method`` defines the HTTP method to use (``GET`` or ``POST``). With ``method="get"`` the form values are appended to the URL and available through :attr:`BaseRequest.query` as described above. This is considered insecure and has other limitations, so we use ``method="post"`` here. If in doubt, use ``POST`` forms. -- cgit v1.2.1