url을 다른 url로 리다이렉트 할 때 사용한다. 따라서 url을 동적으로 처리하는데 유용하다. 기본적으로 `url_for`함수는 엔드포인트 함수명을 인자로 받는다. 따라서 이동하고자 하는 라우트의 함수 이름을 url_for() 내에 적어줘야한다. @app.route('/index') def index(): return render_template('index.html', posts=posts) Flask 블로그 이 때 인자 전달도 가능하다. @app.route('/guest/') def hello(guest): return 'guest name :%s' % guest redirect(url_for('hello', guest=name)) 또한 `url_for`함수로 `static` 폴더 내에 있는 리소..