Skip to content
Myr

introduction.rst

This file

Path

docs/tutorial/introduction.rst

34 lines · 1.3 KiB

Last changed by

Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3

History of this file

Take it

The walk stopped after 200 commits: lines older than 7169f44 point at it.

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

lines 1–5why, one step back
1.. _tutorial-introduction:
23Introducing Flaskr4==================5

Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3

lines 6–8why, one step back
6This tutorial will demonstrate a blogging application named Flaskr, but feel
7free to choose your own less Web-2.0-ish name ;) Essentially, it will do the8following things:

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

line 9why, one step back
9

Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49

line 10why, one step back
101. Let the user sign in and out with credentials specified in the

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

line 11why, one step back
11 configuration. Only one user is supported.

Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49

line 12why, one step back
122. When the user is logged in, they can add new entries to the page

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

lines 13–14why, one step back
13 consisting of a text-only title and some HTML for the text. This HTML
14 is not sanitized because we trust the user here.

Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49

lines 15–16why, one step back
153. The index page shows all entries so far in reverse chronological order
16 (newest on top) and the user can add new ones from there if logged in.

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

line 17why, one step back
17

Address #1902: Converts example/flaskr to have a setup.py (#1945)Kyle Lawlorbefore adoption17d4cb3

lines 18–19why, one step back
18SQLite3 will be used directly for this application because it's good enough
19for an application of this size. For larger applications, however,

Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49

lines 20–21why, one step back
20it makes a lot of sense to use `SQLAlchemy`_, as it handles database
21connections in a more intelligent way, allowing you to target different

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

lines 22–24why, one step back
22relational databases at once and more. You might also want to consider
23one of the popular NoSQL databases if your data is more suited for those.24

Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49

line 25why, one step back
25Here a screenshot of the final application:

Various fixes for test runningMarkus Unterwaditzerbefore adoption7169f44

lines 26–34why, one step back
26
27.. image:: ../_static/flaskr.png28 :align: center29 :class: screenshot30 :alt: screenshot of the final application3132Continue with :ref:`tutorial-folders`.3334.. _SQLAlchemy: http://www.sqlalchemy.org/