mirror of https://github.com/mitsuhiko/flask.git
11 lines
282 B
11 lines
282 B
13 years ago
|
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)
|