질문&답변
여기까지 따라하고 runserver를 했더니 오류가 떠요
forms에서 class Meta의 field가 아니라 fields였네여
- 좋아요수
- 0
- 댓글수
- 2
- 조회수
- 444
질문&답변
forms에서 class Meta의 field가 아니라 fields였네여
질문&답변
해결햇습니다.
질문&답변
아 고쳤습니다 amin.py에서 오타를 냈었네요
질문&답변
https://goor.me/ePAJi
질문&답변
-------------------like.json----------------- { "like_count" : 1, "message" : "좋아요" }
질문&답변
-----------------------index.html-------------------
질문&답변
-----------------------main.js------------------------ if (elem.matches('[data-name="heartbeat"]')){ console.log("heart"); $.ajax({ type : "POST", url : "data/like.json", data : 37, dataType:'json', success : function(response){ let likeCount = document.querySelector('#like-count-37'); likeCount.innerHTML = '좋아요'+ response.like_count + '개'; } }) }else if (elem.matches('[data-name="bookmark"]')){ console.log("bookmark"); }else if (elem.matches('[data-name="share"]')){ console.log("share"); }else if (elem.matches('[data-name="more"]')){ console.log("more"); }
질문&답변
컨테이너 공유는 어떻게 하는건가요?
질문&답변
jquery-3.5.1.js:10099 POST http://127.0.0.1:5500/data/like.json 405 (Method Not Allowed) 오류 내용입니다.
질문&답변
아 해결 됐습니다. 1분20초 경 수정된 내용을 쓴 자막이 틀렸습니다. {'cafelistobj' : cafelist} 라고 적혀 있는데 {'cafelistobj' : cafelistobj} 네요