Tags
- 백트래킹
- update
- regexp
- 스택
- ORM
- Vue
- M:N
- 뷰
- count
- Tree
- stack
- Django
- Article & User
- DB
- 완전검색
- 그리디
- migrations
- distinct
- outer join
- drf
- 트리
- 큐
- 이진트리
- Queue
- 쟝고
- 통계학
- create
- SQL
- delete
- N:1
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
목록shell_plus (1)
데이터 분석 기술 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bjMUd3/btsGIXgQOOV/jbbaUVdEXlcpXplR0ZRidk/img.png)
1. shell_plus 실행 및 게시글 작성 python manage.py shell_plus # 게시글 생성 Article.objects.create(title='title', content='content') 2. 댓글 생성 # Comment 클래스의 인스턴스 comment 생성 comment = Comment() # 인스턴스 변수 저장 comment.content = 'first comment' # DB에 댓글 저장 comment.save() # 에러 발생 django.db.utils.IntegrityError: NOT NULL constraint failed: articles_comment.article_id # articles_comment 테이블의 ForeignKeyField, article..
DB
2024. 4. 18. 09:00