Add setup.py script and an example app

This commit is contained in:
mvantellingen
2011-02-02 20:01:50 +01:00
parent 8342799d2e
commit 3dac361ed4
7 changed files with 68 additions and 18 deletions

17
example/example.py Normal file
View File

@@ -0,0 +1,17 @@
from flask import Flask, render_template
from flaskext.script import Manager
from flaskext.debugtoolbar import DebugToolbarExtension
app = Flask(__name__)
toolbar = DebugToolbarExtension(app)
@app.route('/')
def index():
app.logger.info("Hello there")
return render_template('index.html')
if __name__ == "__main__":
manager = Manager(app)
manager.run()