Flask 0.8 を使用しています。
次のような URL のエイリアスを持つ方法:
@app.route('/')
def index():
# I want to display as http://localhost/index, BUT, I DON'T WANT TO REDIRECT.
# KEEP URL with only '/'
@app.route('/index')
def index():
# Real processing to display /index view
では、/index の処理の DRY のためにエイリアスを使用したい理由
誰かが解決策を知っていましたか?
ありがとうペッパーリスト。