With the inclusion of the app.run we now are able to execute the program, it would be great if we'd have even more detailed docs available for the examples
10 lines
267 B
Python
10 lines
267 B
Python
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()
|