Blueprint example app

This commit is contained in:
Dmitry Shevchenko 2012-03-01 02:07:26 -06:00
parent 20a3281209
commit 85ad4ffb60
7 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,11 @@
from flask import Flask
from simple_page.simple_page import simple_page
app = Flask(__name__)
app.register_blueprint(simple_page)
# Blueprint can be registered many times
app.register_blueprint(simple_page, url_prefix='/pages')
if __name__ == '__main__':
app.run(debug=True)