(수정: 2026년 5월 24일)
1

Python Flask에서 url_for 안에 변수 넣기

Python Flask에서 url_for 안에 변수 넣기

잘못된 예시

1<img src="{{ url_for('static', filename='test/{{ variable[i] }}.png') }}" width="300px">`

올바른 예시

1<img src="{{ url_for('static', filename='test/') }}{{ variable[i] }}.png" width="300px">`

Comments