일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 탐욕 알고리즘
- docker-compose
- 깃허브
- 알고리즘
- venv
- Django
- 단축어
- Google Drive
- 추천 영상
- 유튜브
- 아이폰
- List
- flask
- 코딩
- 충북
- 파이썬
- G-Suite
- MongoDB
- 구글 드라이브
- nocookie
- pymongo
- python
- 장고
- DB
- 그리디 알고리즘
- gpu 병렬처리
- 링크
- 리스트
- 바로학교
- selenium
Archives
- Today
- Total
목록파일업로드 (1)
SSAMKO의 개발 이야기

대용량 파일을 local DB가 아닌 GCS나 AWS S3에 저장하기 위해, 혹은 mongodb같은 써드파티 DB를 사용하는 서버에서, 파일을 단순히 업로드 받아 처리해야할 경우가 있다. 그럴경우엔 forms.py나 model.py 작성없이 바로 views.py에서 작성 가능하다. from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from .. import FileManager as fm @csrf_exempt @require_POST def recommend_user_prod(request): fm..
Django
2021. 1. 18. 20:33