https://kubernetes.io/ko/docs/tutorials/kubernetes-basics/
https://jupiny.com/2016/12/12/sort-korean-in-postgresql/
jupiny의 개발일지jupiny의 개발일지
PostgreSQL 한글 정렬 문제 해결하기
[PostgreSQL] psql 명령어
drf-yasg참조
https://mashup.lhy.kr/doc/
https://github.com/LeeHanYeong/Mash-Up-Backend
GitHubGitHub
LeeHanYeong/Mash-Up-Backend
https://drf-yasg.readthedocs.io/en/stable/
alias typora="open -a /Applications/Typora.app/Contents/MacOS/Typora"
PostListCreateAPIView를 generics.ListCreateAPIView를 상속받도록 수정
PostImageCreateSerializer구현 및 사용
PostCreateSerializer가 Post와 PostImage를 동시에 생성할 수 있도록 설정
/posts/?published=1
/posts/?published=0
request.GET
Django view
로그인
Serialize
메모리에 갖고 있는 비연속적인 데이터를 연속적인 데이터로 만드는 과정
파일, 문자열
Deserialize
연속적인 데이터를 파이썬이 사용하는 데이터 형태로 만드는 과정
Serialize과정
Custom Python object
-> (Serializer) -> Python data type
-> (Renderer) -> JSON
serializer = SnippetSerializer(snippet)
snippet: Custom Python object
serializer: snippet object를 Python data type으로 변환할 수 있는 Serializer객체
-> .data (snippet object를 Python data type으로 가져오는 property)
Deserialize과정
JSON string
-> (Parser) -> Python data type
-> (Serializer) -> Custom object(Model instance)
(create / update)
Create (data)
title, code, linenos, style, language
Update (instance, data)
title, code