introduction.rst
This file
Path
docs/tutorial/introduction.rst
29 lines · 1.2 KiB
Last changed by
New style for the documentation. Looks more like the website now.Armin Ronacherbefore adoptionbcf347f
History of this fileTake it
1Introducing Flaskr2==================34We will call our blogging application flaskr here, feel free to chose a5less web-2.0-ish name ;) Basically we want it to do the following things:671. let the user sign in and out with credentials specified in the8 configuration. Only one user is supported.92. when the user is logged in he or she can add new entries to the page10 consisting of a text-only title and some HTML for the text. This HTML11 is not sanitized because we trust the user here.123. the page shows all entries so far in reverse order (newest on top) and13 the user can add new ones from there if logged in.1415We will be using SQlite3 directly for that application because it's good16enough for an application of that size. For larger applications however17it makes a lot of sense to use `SQLAlchemy`_ that handles database18connections in a more intelligent way, allows you to target different19relational databases at once and more. You might also want to consider20one of the popular NoSQL databases if your data is more suited for those.2122Here a screenshot from the final application:2324.. image:: ../_static/flaskr.png25 :align: center26 :class: screenshot27 :alt: screenshot of the final application2829.. _SQLAlchemy: http://www.sqlalchemy.org/