TIL

Today I Learned. 知ったこと、学んだことを書いていく

2018-02-27から1日間の記事一覧

redirectする - bottle

bottleでリダイレクトをする方法 /abcにアクセスしたら、/defにリダイレクトしたい from bottle import route, run from bottle import redirect @route('/abc') def test1(): redirect('/def') @route('/def') def test2(): return 'defのページ' run(host=…