Tags
- 통계학
- regexp
- 이진트리
- update
- ORM
- N:1
- 뷰
- 큐
- 쟝고
- create
- M:N
- outer join
- SQL
- distinct
- stack
- Tree
- drf
- migrations
- 트리
- 그리디
- Django
- 완전검색
- delete
- DB
- Article & User
- 스택
- Vue
- 백트래킹
- Queue
- count
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Notice
Recent Posts
Link
목록2024/04/27 (1)
데이터 분석 기술 블로그
DB에 대하여(10)_댓글 DELETE (feat. Django)
1. 댓글 DELETE댓글 삭제 요청 사용자와 댓글 작성 사용자를 비교하여 본인의 댓글만 삭제 할 수 있도록 합니다.# articles/views.pydef commets_delete(request, article_pk, comment_pk): comment = Comment.objects.get(pk=comment_pk) if request.user == comment.user: comment.delete() return redirect('articles:detail', article_pk)해당 댓글의 작성자가 아니라면, 댓글 삭제 버튼을 출력하지 않도록 합니다. {% for comment in comments %} {{ comment.user }} - {..
SW/DB
2024. 4. 27. 09:00