Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 팀프로젝트 기획
- 다항 논리 회귀
- json to db
- serializer
- 백엔드
- 머신러닝
- test.py
- 프로필사진 업로드
- python to json
- 비밀번호 수정
- 팔로우 기능 에러
- 와이어프레임
- 장고
- Django
- CNN
- 이진 논리 회귀
- 북마크한 목록 가져오기
- ERD
- class view
- API명세
- 댓글쓰기
- js
- 프론트엔드
- Python
- original set
- 댓글지우기
- 딥러닝
- 개인페이지
- docker
- DRF
Archives
- Today
- Total
목록수정하기 (1)
코딩 개발일지

수정하기 기능을 만드는데 자꾸 에러가 났다..ㅜㅜ urls.py, models.py, update.html 는 전부 다 완벽했고, 문제가 생겼다면 분명히 views.py의 함수에서 잘못된 것이다!! views.py에 내가 쓴 update 함수 @csrf_exempt def update(request, todo_id): if request.method == "POST": if request.user == todo.user: todo = Todo.objects.get(id=todo_id) todo.content = request.POST['content'] todo.save() return redirect(f'/todo/{todo_id}/') else: return HttpResponse('not allow..
AI 본 교육/AI 5주차
2023. 9. 6. 19:45