Skip to content
Myr

Removed useless imports and added README

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent c33675f · Browse files · 2 files+26 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+26 added−2 removed

  • other:+26 added−2 removed

2 files+26 added−2 removed

modified:examples/flaskr/flaskr.py-2 removed
8 unmodified lines
9 :copyright: (c) 2010 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12from __future__ import with_statement13import time13import sqlite314from contextlib import closing15from flask import Flask, request, session, g, redirect, url_for, abort, \16 render_template, flash18from werkzeug import secure_filename1718# configuration19DATABASE = '/tmp/flaskr.db'20DEBUG = True
81 unmodified lines
added:examples/flaskr/README+26 added
12 / Flaskr /34 a minimal blog application567 ~ What is Flask?89 A sqlite powered thumble blog application1011 ~ How do I use it?1213 1. edit the configuration in the flaskr.py file1415 2. fire up a python shell and run this:1617 >>> from flaskr import init_db; init_db()1819 3. now you can run the flaskr.py file with your20 python interpreter and the application will21 greet you on http://localhost:5000/22 23 ~ Is it tested?2425 You betcha. Run the `flaskr_tests.py` file to see26 the tests pass.