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

1. 사용자로부터 댓글 데이터를 입력받기 위한 CommentForm 정의 # articles/forms.py from .models import Article, Comment class CommentForm(forms.ModelForm): class Meta: model = Comment fields = '__all__' 2. deatil view 함수에서 CommentForm을 사용하여 detail 페이지에 렌더링 # articles/views.py from .forms import ArticleForm, CommentForm def detail(request, pk): article = Article.objects.get(pk=pk) comment_form = CommentForm() context ..
SW/DB
2024. 4. 20. 09:00