

여기부분에서 저장 완료가 안뜹니다.
코드 밑에 실행을 확인해보니
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
KeyError: 'url_give'
127.0.0.1 - - [17/Aug/2022 22:10:58] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2022 22:10:59] "GET /movie HTTP/1.1" 200 -
127.0.0.1 - - [17/Aug/2022 22:19:03] "POST /movie HTTP/1.1" 500 -
ketError라 뜨는데 제가 명령어를 잘못 입력한건가요?
function posting() {
let url = $('#url').val()
let star = $('#star').val()
let comment = $('#commet').val()
$.ajax({
type: 'POST',
url: '/movie',
data: {url_give:url, star_give:star,comment_give:comment},
success: function (response) {
alert(response['msg'])
window.location.reload()
}
});
}
data: {url_give:url, star_give:star,comment_give:comment}, 여기 url_give, star_give, comment_give가 보라색 글씨가 아닌데 잘못된건가요?
