blueprintexample.py
This file
Path
examples/blueprintexample/blueprintexample.py
11 lines · 282 bytes · Python
Last changed by
Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoption2e816f5
History of this fileTake it
Merge branch 'master' of github.com:mitsuhiko/flaskArmin Ronacherbefore adoption2e816f5
lines 1–11why, 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 times7app.register_blueprint(simple_page, url_prefix='/pages') 8910if __name__ == '__main__':11 app.run(debug=True)