Flask: why having path converter in root route doesn't work? Flask: why having path converter in root route doesn't work? flask flask

Flask: why having path converter in root route doesn't work?


static_url_path conflicts with routing. Flask thinks that path after / is reserved for static files, therefore path converter didn't work. See: URL routing conflicts for static files in Flask dev server


works flawless for me:

from flask import Flask, render_templateapp = Flask(__name__)@app.route('/')def index():    return render_template('index.html')@app.route('/page/<path:page>')def article(page):    return render_template('page.html')if __name__ == "__main__":    app.debug = True    app.run()

I can access: http://localhost/ -> index and http://localhost/page/<any index/path e.g.: 1> -> article