2010-04-18 19:15:00 +08:00
|
|
|
.. _tutorial:
|
|
|
|
|
|
|
|
Tutorial
|
|
|
|
========
|
|
|
|
|
|
|
|
You want to develop an application with Python and Flask? Here you have
|
2014-12-13 14:52:36 +08:00
|
|
|
the chance to learn by example. In this tutorial, we will create a simple
|
|
|
|
microblogging application. It only supports one user that can create
|
2010-04-18 19:15:00 +08:00
|
|
|
text-only entries and there are no feeds or comments, but it still
|
|
|
|
features everything you need to get started. We will use Flask and SQLite
|
2014-12-13 14:52:36 +08:00
|
|
|
as a database (which comes out of the box with Python) so there is nothing
|
2010-04-18 19:15:00 +08:00
|
|
|
else you need.
|
|
|
|
|
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`_.
|
|
|
|
|
|
|
|
.. _example source:
|
2016-04-04 05:11:38 +08:00
|
|
|
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
|