introduction.rst
This file
Path
docs/tutorial/introduction.rst
33 lines · 1.3 KiB
Last changed by
Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
History of this fileTake it
The walk stopped after 200 commits: lines older than b0f8d0f point at it.
Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
lines 1–5why, one step back1.. _tutorial-introduction:23Introducing Flaskr4==================5Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
lines 6–7why, one step back6We will call our blogging application flaskr, but feel free to choose your own7less Web-2.0-ish name ;) Essentially, we want it to do the following things:Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
line 8why, one step back8Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
line 9why, one step back91. Let the user sign in and out with credentials specified in theMerge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
line 10why, one step back10 configuration. Only one user is supported.Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
line 11why, one step back112. When the user is logged in, they can add new entries to the pageMerge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
lines 12–13why, one step back12 consisting of a text-only title and some HTML for the text. This HTML13 is not sanitized because we trust the user here.Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
lines 14–15why, one step back143. The index page shows all entries so far in reverse chronological order15 (newest on top) and the user can add new ones from there if logged in.Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
line 16why, one step back16Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
lines 17–20why, one step back17We will be using SQLite3 directly for this application because it's good18enough for an application of this size. For larger applications, however,19it makes a lot of sense to use `SQLAlchemy`_, as it handles database20connections in a more intelligent way, allowing you to target differentMerge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
lines 21–23why, one step back21relational databases at once and more. You might also want to consider22one of the popular NoSQL databases if your data is more suited for those.23Merge pull request #1277 from iKevinY/doc-fixesMarkus Unterwaditzerbefore adoption82d7c49
line 24why, one step back24Here a screenshot of the final application:Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoptionb0f8d0f
lines 25–33why, one step back2526.. image:: ../_static/flaskr.png27 :align: center28 :class: screenshot29 :alt: screenshot of the final application3031Continue with :ref:`tutorial-folders`.3233.. _SQLAlchemy: http://www.sqlalchemy.org/