문제: 동영상 파일 혹은 대용량 파일 업로더시 비동기로 처리하고 싶음 초기 문제점: File 객체를 celery를 사용한 함수에 넘겨서 오류 발생 에러내용: Object of type InMemoryUploadedFile is not JSON serializer 구글링을 해봄 https://stackoverflow.com/questions/56749151/django-send-excel-file-to-celery-task-error-inmemoryuploadedfile Django send excel file to Celery Task. Error InMemoryUploadedFile I have background process - read excel file and save data from this..
from rest_flex_fields import FlexFieldsModelSerializer from rest_framework import serializers from app.product.models import ProductPrice, ProductLabel, Product class ProductMapper(FlexFieldsModelSerializer): common_info = serializers.CharField(source='get_common_info') category1 = serializers.CharField(source='category1.id') address = serializers.CharField(source='address.full_text', allow_null..
class VideoField(models.URLField): """ Custom Video Field """ def __init__(self, *args, **kwargs): super(VideoField, self).__init__(*args, **kwargs) aws = ServiceSetting.objects.first().social_key.get('aws') if aws is not None and aws.get('access_key_id') == '' and aws.get('secret_access_key') == '': self.access_key_id = AWS_ACCESS_KEY_ID self.secret_access_key = AWS_SECRET_ACCESS_KEY self.bucke..