Skip to content
Myr

introduction.rst

This file

Path

docs/tutorial/introduction.rst

33 lines · 1.3 KiB

Last changed by

Merge pull request #1758 from AustenDSouza/patch-1David Lordbefore adoption89086c5

History of this file

Take it

1.. _tutorial-introduction:23Introducing Flaskr4==================56We 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: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, they 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 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.1617We 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 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 of the final application:2526.. image:: ../_static/flaskr.png27   :align: center28   :class: screenshot29   :alt: screenshot of the final application3031Continue with :ref:`tutorial-folders`.3233.. _SQLAlchemy: http://www.sqlalchemy.org/