Tags
- Article & User
- 쟝고
- Django
- outer join
- regexp
- N:1
- 그리디
- DB
- 트리
- ORM
- 백트래킹
- drf
- 이진트리
- 완전검색
- stack
- update
- Vue
- migrations
- Tree
- 통계학
- delete
- count
- 큐
- Queue
- distinct
- 스택
- create
- SQL
- 뷰
- M:N
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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/21 (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