Skip to content
Myr

Fix typos found while completing the Flask tutorial

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jesse Seldess · committed by David Lord · parent 15c079f · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:docs/tutorial/blog.rst+1 added-1 removed
312 unmodified lines
313------314315The delete view doesn't have its own template, the delete button is part316of ``update.html`` and posts to the ``/<id>/delete`` URL. Since there317is no template, it will only handle the ``POST`` method then redirect317is no template, it will only handle the ``POST`` method and then redirect318to the ``index`` view.319320.. code-block:: python321 :caption: ``flaskr/blog.py``
15 unmodified lines
modified:docs/tutorial/database.rst+1 added-1 removed
147 unmodified lines
148Register with the Application149-----------------------------150151The ``close_db`` and ``init_db_command`` functions need to be registered152with the application instance, otherwise they won't be used by the152with the application instance; otherwise, they won't be used by the153application. However, since you're using a factory function, that154instance isn't available when writing the functions. Instead, write a155function that takes an application and does the registration.156
57 unmodified lines