Tags
- create
- 쟝고
- delete
- regexp
- M:N
- 통계학
- 이진트리
- 스택
- 백트래킹
- 완전검색
- Vue
- update
- Article & User
- 그리디
- Queue
- ORM
- 트리
- Tree
- 큐
- migrations
- Django
- DB
- distinct
- SQL
- count
- stack
- drf
- 뷰
- N:1
- 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 |
Notice
Recent Posts
Link
목록댓글 (1)
데이터 분석 기술 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/pevD5/btsGJtl6n6J/OFHvyqy6ZkeODIFNIp5al1/img.png)
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 ..
DB
2024. 4. 20. 09:00