Skip to content
Myr

introduction.rst

This file

Path

docs/tutorial/introduction.rst

33 lines · 1.3 KiB

Last changed by

Added lazyloading pattern and explicit chapter links in tutorial.Armin Ronacherbefore adoption9d19b77

History of this file

Take it

The walk stopped after 200 commits: lines older than 931dcc4 point at it.

Added lazyloading pattern and explicit chapter links in tutorial.Armin Ronacherbefore adoption9d19b77

lines 1–2why, one step back
1.. _tutorial-introduction:
2

Fixed a doc bug and added distribtue docs.Armin Ronacherbefore adoption931dcc4

lines 3–29why, one step back
3Introducing Flaskr
4==================56We will call our blogging application flaskr here, feel free to chose a7less web-2.0-ish name ;) Basically we want it to do the following things:891. let the user sign in and out with credentials specified in the10 configuration. Only one user is supported.112. when the user is logged in he or she can add new entries to the page12 consisting of a text-only title and some HTML for the text. This HTML13 is not sanitized because we trust the user here.143. the page shows all entries so far in reverse order (newest on top) and15 the user can add new ones from there if logged in.1617We will be using SQlite3 directly for that application because it's good18enough for an application of that size. For larger applications however19it makes a lot of sense to use `SQLAlchemy`_ that handles database20connections in a more intelligent way, allows you to target different21relational databases at once and more. You might also want to consider22one of the popular NoSQL databases if your data is more suited for those.2324Here a screenshot from the final application:2526.. image:: ../_static/flaskr.png27 :align: center28 :class: screenshot29 :alt: screenshot of the final application

Added lazyloading pattern and explicit chapter links in tutorial.Armin Ronacherbefore adoption9d19b77

lines 30–31why, one step back
30
31Continue with :ref:`tutorial-folders`.

Fixed a doc bug and added distribtue docs.Armin Ronacherbefore adoption931dcc4

lines 32–33why, one step back
32
33.. _SQLAlchemy: http://www.sqlalchemy.org/