2010-04-18 13:15:00 +02:00
|
|
|
.. _tutorial:
|
|
|
|
|
|
|
|
|
|
Tutorial
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
You want to develop an application with Python and Flask? Here you have
|
2014-12-12 22: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 13:15:00 +02: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-12 22:52:36 -08:00
|
|
|
as a database (which comes out of the box with Python) so there is nothing
|
2010-04-18 13:15:00 +02:00
|
|
|
else you need.
|
|
|
|
|
|
2014-10-27 11:45:00 +01:00
|
|
|
If you want the full source code in advance or for comparison, check out
|
2010-04-18 13:15:00 +02:00
|
|
|
the `example source`_.
|
|
|
|
|
|
|
|
|
|
.. _example source:
|
2016-04-03 23:11:38 +02:00
|
|
|
https://github.com/pallets/flask/tree/master/examples/flaskr/
|
2010-04-18 13:15:00 +02:00
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
|
|
introduction
|
|
|
|
|
folders
|
|
|
|
|
schema
|
|
|
|
|
setup
|
2016-07-05 20:30:59 -04:00
|
|
|
setuptools
|
2010-04-19 02:45:44 +02:00
|
|
|
dbcon
|
2013-09-01 01:32:41 +06:00
|
|
|
dbinit
|
2010-04-18 13:15:00 +02:00
|
|
|
views
|
|
|
|
|
templates
|
|
|
|
|
css
|
|
|
|
|
testing
|