Skip to content
Myr

blueprintexample.py

This file

Path

examples/blueprintexample/blueprintexample.py

10 lines · 267 bytes · Python

Last changed by

Merge pull request #1100 from thewhitetulip/patch-1Daniel Neuhäuserbefore adoptiona51a167

History of this file

Take it

The walk stopped after 200 commits: lines older than 335cbe0 point at it.

Fixed a typoArmin Ronacherbefore adoption335cbe0

lines 1–6why, one step back
1from flask import Flask
2from simple_page.simple_page import simple_page34app = Flask(__name__)5app.register_blueprint(simple_page)6# Blueprint can be registered many times

Updated the examples to be cli basedArmin Ronacherbefore adoption9ab5987

line 7why, one step back
7app.register_blueprint(simple_page, url_prefix='/pages')

Merge pull request #1100 from thewhitetulip/patch-1Daniel Neuhäuserbefore adoptiona51a167

lines 8–10why, one step back
8
9if __name__=='__main__':10 app.run()