2018-02-27から1日間の記事一覧
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=…
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=…