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