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
- Django
- Python
- 딥러닝
- DRF
- json to db
- 팀프로젝트 기획
- 북마크한 목록 가져오기
- 와이어프레임
- 프로필사진 업로드
- CNN
- 장고
- 머신러닝
- 다항 논리 회귀
- python to json
- js
- API명세
- ERD
- original set
- 백엔드
- 프론트엔드
- docker
- 개인페이지
- serializer
- 이진 논리 회귀
- test.py
- class view
- 팔로우 기능 에러
- 댓글지우기
- 댓글쓰기
- 비밀번호 수정
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