20230116 TIL

양진규·2023년 1월 16일
0

스파르톤!!

한 일: detail/list 등 html 파일 수정

문제점: main에서 detail 페이지로 넘어가는 방법을 몰랐었음

해결:
1. app.py에서 get post 생성

@app.route('/detail', methods=['GET'])
def detail():
return render_template('detail.html')

  1. '자세히 보기'파일이 위치한 main에서 onclick 기능 사용(onclick="location.href='/detail'")

느낀점:
백틱에 의한 에러가 자주 났었기 때문에, 백틱 관련 공부를 해야할 것을 느낌(현업에서는 안쓴다던데...?)

0개의 댓글