Tags
- drf
- Queue
- delete
- M:N
- 스택
- 이진트리
- 완전검색
- 트리
- 쟝고
- DB
- 통계학
- regexp
- create
- stack
- 큐
- update
- distinct
- outer join
- Vue
- 뷰
- Article & User
- Django
- Tree
- 백트래킹
- ORM
- N:1
- count
- migrations
- SQL
- 그리디
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
목록comment & user (1)
데이터 분석 기술 블로그
DB에 대하여(8)_Comment & User 모델 관계 설정 (feat. Django)
1. Comment-User 모델 관계 설정User 외래 키를 정의합니다.# articles/models.pyclass Comment(models.Model): article = models.ForeignKey(Article, on_delete=models.CASCADE) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) content = models.CharField(max_length=200) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)2. Migrat..
DB
2024. 4. 25. 09:36