일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 |
30 | 31 |
- 데이터 웨어하우스
- AWS
- 데이터엔지니어링
- S3
- PYTHON
- Django
- dockerfile
- 운영체제
- 자료구조
- TIL
- 컴퓨터 네트워크
- 데이터 파이프라인
- TCP
- 데이터베이스
- linux
- sql
- 정리
- HADOOP
- redshift
- Go
- Docker
- 파이썬
- 가상환경
- airflow.cfg
- 데이터 엔지니어링
- 컴퓨터네트워크
- 데브코스
- airflow
- 종류
- http
- Today
- Total
목록분류 전체보기 (183)
홍카나의 공부방

Serializer 모델 인스턴스나, QuerySet과 같은 데이터를 JSON 형식의 파일로 변환하는 작업을 Serialize라고 한다. 반대로 Deserialize는 JSON 형식의 데이터를 정의된 포맷에 맞춰 모델 인스턴스로 변환하는 작업이다. Django에서는 Serializer라는 모듈로 Serialize, Deserialize를 수행할 수 있다. 아래는 객체를 만들거나, 업데이트하는 serializer.py의 예시 코드다. Django Shell에서 Serializer를 사용하여 객체를 새로 만들 수도 있다. from rest_framework import serializers from polls.models import Question class QuestionSerializer(seriali..
View와 Template의 기본 사용 예시 # views.py: from django.shortcuts import render from django.http import HttpResponse from polls.models import Question def index(request): # 쿼리셋을 정리하기 위한 method = order_by. 내림차순이 default latest_question_list = Question.objects.order_by('-pub_date')[:5] context = {'first_question': latest_question_list[0]} return render(request, 'polls/index.html', context=context) # 템플릿 ..
Django 초기 설정 과정 https://hongcana.tistory.com/29 [Django] 장고 명령어 정리(치트시트) - 1 Windows 기준 - django-admin startproject {project 명} => 프로젝트 폴더 및 manage.py 생성 - (Git 설정) .gitignore 설정 체크 => gitignore.io에 들어가서 Django 검색 입력 후 필요에 따라 복붙하고 이용. => git add .gitignor hongcana.tistory.com https://hongcana.tistory.com/30 [Django] 새로운 프로젝트 만들 때 초기 설정 확인 과정 1. 가상환경 만들기 2. pip install django 3. django-admin으로 프로..