from flask import Flask from app import views, api app = Flask(__name__, template_folder='app/templates') app.register_blueprint(views.bp) app.register_blueprint(api.bp, url_prefix='/api')