- Django
- Article & User
- migrations
- create
- delete
- outer join
- 완전검색
- regexp
- 쟝고
- count
- M:N
- SQL
- stack
- 그리디
- 백트래킹
- Vue
- 이진트리
- Queue
- DB
- 뷰
- update
- 트리
- 스택
- distinct
- drf
- N:1
- ORM
- 큐
- Tree
- 통계학
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
목록get (2)
데이터 분석 기술 블로그
1. 사전 준비1-1. Comment 모델 정의Comment 클래스 정의 및 데이터 베이스 초기화# articles/models.pyclass Comment(models.Model): artilce = models.ForeignKey(Article, on_delete=models.CASCADE content = models.TextField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)Migration 및 fixtures 데이터 로드$ python manage.py makemigrations$ python manage.py migrate$ pyt..
1. GET1-1. GET - List게시글 데이터 목록 조회하기게시글 데이터 목록을 제공하는 ArticleListSerializer 정의serializers.py의 위치나 파일명은 자유롭게 작성 가능합니다.# articles/serializers.pyfrom rest_framework import serializersfrom .models import Articleclass ArticleListSerializer(serializers.ModelSerializer): class Meta: model = Article fields = ('id', 'title', 'content',)ModelSerialzier은 Django 모델과 연결된 Serializer 클래스입니다.url..