Tags
- stack
- Tree
- Article & User
- SQL
- update
- Queue
- 스택
- 그리디
- DB
- regexp
- 큐
- 완전검색
- 통계학
- Vue
- 백트래킹
- 트리
- count
- 이진트리
- create
- Django
- ORM
- N:1
- drf
- migrations
- M:N
- 뷰
- distinct
- delete
- outer join
- 쟝고
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Notice
Recent Posts
Link
목록댓글 DELETE (1)
데이터 분석 기술 블로그

1. 댓글 READ 구현 detail view 함수에서 전체 댓글 데이터를 조회 # articles/views.py from .models import Article, Comment def detail(request, pk): article = Article.objects.get(pk=pk) comment_form = CommentForm() comments = article.comment_set.all() context = { 'article': article, 'comment_form': comment_form, 'comments': comments, } return render(request, 'articles/detail.html', context) 댓글 목록 {% for comment in co..
SW/DB
2024. 4. 21. 09:00