from flask import Flask
app = Flask(__name__)
import route
if __name__ == '__main__':
app.run()
from app import app
@app.route('/')
def hello_world():
return 'Hello World!'
from flask import Flask
from route import app_route
app = Flask(__name__)
app.register_blueprint(app_route)
if __name__ == '__main__':
app.run(debug=True)
from flask import Blueprint
app_route = Blueprint('route', __name__)
@app_route.route('/')
def index():
return 'Hello world!'