how to set route from different python file in flask code example
Example: how to set route from different python file in flask
simple_page = Blueprint('simple_page', __name__, template_folder='templates')
@simple_page.route('/<page>')
def show(page):
# stuff
from yourapplication.simple_page import simple_page
app = Flask(__name__)
app.register_blueprint(simple_page)