Updated the examples to be cli based

This commit is contained in:
Armin Ronacher 2014-04-29 01:48:31 +02:00
parent 3be7d918ce
commit 9ab5987100
6 changed files with 26 additions and 33 deletions

View file

@ -4,8 +4,4 @@ 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)
app.register_blueprint(simple_page, url_prefix='/pages')