blueprintexample.py
This file
Path
examples/blueprintexample/blueprintexample.py
7 lines · 229 bytes · Python
Last changed by
Updated the examples to be cli basedArmin Ronacherbefore adoption9ab5987
History of this fileTake it
The walk stopped after 200 commits: lines older than 3fdcefb point at it.
Merge pull request #625 from soulseekah/masterKenneth Reitzbefore adoption3fdcefb
lines 1–6why, one step back1from flask import Flask2from simple_page.simple_page import simple_page34app = Flask(__name__)5app.register_blueprint(simple_page)6# Blueprint can be registered many timesUpdated the examples to be cli basedArmin Ronacherbefore adoption9ab5987
line 7why, one step back7app.register_blueprint(simple_page, url_prefix='/pages')