Tags
- delete
- 완전검색
- Vue
- ORM
- N:1
- 스택
- count
- create
- drf
- migrations
- Tree
- 트리
- 뷰
- update
- 이진트리
- distinct
- stack
- DB
- regexp
- SQL
- 그리디
- Article & User
- M:N
- 백트래킹
- Django
- Queue
- 쟝고
- 큐
- 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
목록on_delete (1)
데이터 분석 기술 블로그
DB에 대하여(2)_댓글 모델 구현 (feat. Django)
1. 댓글 모델 정의 ForeignKey() 클래스의 인스턴스 이름은 참조하는 모델 클래스 이름의 단수형으로 작성하는 것을 권장합니다. ForiegnKey 클래스를 작성하는 위치와 관계없이 외래 키는 테이블 필드 마지막에 생성됩니다. # articles/models.py class Comment(models.Model): article = models.ForeignKey(Article, on_delete=models.CASCADE) content = models.CharField(max_length=200) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(atuo_now=True) 2. Forign..
DB
2024. 4. 17. 15:55