flask/examples/flaskr
Gennady Kovshenin 82b29c09ac Use sqlite3.Row factory in Flaskr
As pointed out in issue #588 sqlite3.Row should be used instead of
using casting to dict(). Also altered the "Easy Querying" Patterns
example to include the more correct way to return rows as dicts.
Did not touch Tutorial examples ("Views"), as these are not up to
date with the current Flaskr code, and the "Show Entries" section
points out the "Easy Querying" section on how to convert to a
dict().
2012-11-05 06:00:46 +06:00
..
static Beefed up the tutorial 2010-04-16 02:03:45 +02:00
templates Beefed up the tutorial 2010-04-16 02:03:45 +02:00
flaskr.py Use sqlite3.Row factory in Flaskr 2012-11-05 06:00:46 +06:00
flaskr_tests.py Mention the TESTING flag in the docs 2011-06-17 21:53:11 +02:00
README Ported examples over to new config. documented upgrading 2010-05-27 21:17:25 +02:00
schema.sql Added mini blogging application as Flask example. 2010-04-14 16:44:29 +02:00

                         / Flaskr /

                 a minimal blog application


    ~ What is Flaskr?

      A sqlite powered thumble blog application

    ~ How do I use it?

      1. edit the configuration in the flaskr.py file or
         export an FLASKR_SETTINGS environment variable
         pointing to a configuration file.

      2. fire up a python shell and run this:

         >>> from flaskr import init_db; init_db()

      3. now you can run the flaskr.py file with your
         python interpreter and the application will
         greet you on http://localhost:5000/
	
    ~ Is it tested?

      You betcha.  Run the `flaskr_tests.py` file to see
      the tests pass.