from flask import Flask, request, redirect, url_for, render_template from app.views import routes def create_app(): # create and configure the app app = Flask(__name__) app.config.from_pyfile('settings.py') app.register_blueprint(routes) return app