From 90aef1b2cff8ac17eec0e69a3cfe1c55c94f9b12 Mon Sep 17 00:00:00 2001 From: Jesse Seldess Date: Fri, 14 Dec 2018 11:59:16 -0500 Subject: [PATCH] Fix typos found while completing the Flask tutorial --- docs/tutorial/blog.rst | 2 +- docs/tutorial/database.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/blog.rst b/docs/tutorial/blog.rst index 4511d61b..18eac193 100644 --- a/docs/tutorial/blog.rst +++ b/docs/tutorial/blog.rst @@ -314,7 +314,7 @@ Delete The delete view doesn't have its own template, the delete button is part of ``update.html`` and posts to the ``//delete`` URL. Since there -is no template, it will only handle the ``POST`` method then redirect +is no template, it will only handle the ``POST`` method and then redirect to the ``index`` view. .. code-block:: python diff --git a/docs/tutorial/database.rst b/docs/tutorial/database.rst index 51f20b61..5d8bba08 100644 --- a/docs/tutorial/database.rst +++ b/docs/tutorial/database.rst @@ -149,7 +149,7 @@ Register with the Application ----------------------------- The ``close_db`` and ``init_db_command`` functions need to be registered -with the application instance, otherwise they won't be used by the +with the application instance; otherwise, they won't be used by the application. However, since you're using a factory function, that instance isn't available when writing the functions. Instead, write a function that takes an application and does the registration.