introduction.rst
This file
Path
docs/tutorial/introduction.rst
34 lines · 1.3 KiB
Last changed by
Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89
History of this fileTake it
The walk stopped after 200 commits: lines older than da0ebb9 point at it.
Merge pull request #1760 from mattrobenolt/patch-1Markus Unterwaditzerbefore adoptionda0ebb9
lines 1–5why, one step back1.. _tutorial-introduction:23Introducing Flaskr4==================5Merge branch '0.11-maintenance'David Lordbefore adoption633b13e
lines 6–8why, one step back6This tutorial will demonstrate a blogging application named Flaskr, but feel7free to choose your own less Web-2.0-ish name ;) Essentially, it will do the8following things:Merge pull request #1760 from mattrobenolt/patch-1Markus Unterwaditzerbefore adoptionda0ebb9
lines 9–17why, one step back9101. Let the user sign in and out with credentials specified in the11 configuration. Only one user is supported.122. When the user is logged in, they can add new entries to the page13 consisting of a text-only title and some HTML for the text. This HTML14 is not sanitized because we trust the user here.153. The index page shows all entries so far in reverse chronological order16 (newest on top) and the user can add new ones from there if logged in.17Merge branch '0.11-maintenance'David Lordbefore adoption633b13e
lines 18–19why, one step back18SQLite3 will be used directly for this application because it's good enough19for an application of this size. For larger applications, however,Merge pull request #1760 from mattrobenolt/patch-1Markus Unterwaditzerbefore adoptionda0ebb9
lines 20–24why, one step back20it makes a lot of sense to use `SQLAlchemy`_, as it handles database21connections in a more intelligent way, allowing you to target different22relational databases at once and more. You might also want to consider23one of the popular NoSQL databases if your data is more suited for those.24Merge branch 'master' into masterKenneth Reitzbefore adoptiond911c89
line 25why, one step back25Here is a screenshot of the final application:Merge pull request #1760 from mattrobenolt/patch-1Markus Unterwaditzerbefore adoptionda0ebb9
lines 26–33why, one step back2627.. image:: ../_static/flaskr.png28 :align: center29 :class: screenshot30 :alt: screenshot of the final application3132Continue with :ref:`tutorial-folders`.33Migrate various docs links to https (#2180)Jeff Widmanbefore adoptionbb0e755
line 34why, one step back34.. _SQLAlchemy: https://www.sqlalchemy.org/