2010-04-18 19:15:00 +08:00
|
|
|
.. _tutorial:
|
|
|
|
|
|
|
|
Tutorial
|
|
|
|
========
|
|
|
|
|
2017-05-25 08:00:20 +08:00
|
|
|
Learn by example to develop an application with Python and Flask.
|
|
|
|
|
|
|
|
In this tutorial, we will create a simple blogging application. It only
|
|
|
|
supports one user, only allows text entries, and has no feeds or comments.
|
|
|
|
|
|
|
|
While very simple, this example still features everything you need to get
|
|
|
|
started. In addition to Flask, we will use SQLite for the database, which is
|
|
|
|
built-in to Python, so there is nothing else you need.
|
2010-04-18 19:15:00 +08:00
|
|
|
|
2014-10-27 18:45:00 +08:00
|
|
|
If you want the full source code in advance or for comparison, check out
|
2010-04-18 19:15:00 +08:00
|
|
|
the `example source`_.
|
|
|
|
|
2017-05-25 08:00:20 +08:00
|
|
|
.. _example source: https://github.com/pallets/flask/tree/master/examples/flaskr/
|
2010-04-18 19:15:00 +08:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
introduction
|
|
|
|
folders
|
|
|
|
schema
|
|
|
|
setup
|
2016-09-08 21:19:48 +08:00
|
|
|
packaging
|
2010-04-19 08:45:44 +08:00
|
|
|
dbcon
|
2013-09-01 03:32:41 +08:00
|
|
|
dbinit
|
2010-04-18 19:15:00 +08:00
|
|
|
views
|
|
|
|
templates
|
|
|
|
css
|
|
|
|
testing
|