mirror of https://github.com/pallets/flask.git
20 lines
423 B
Python
20 lines
423 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Blueprint Example
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
:copyright: © 2010 by the Pallets team.
|
|
:license: BSD, see LICENSE for more details.
|
|
"""
|
|
|
|
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()
|