摘要:from rest_framework.views import APIView from meituan.models import Merchant from django.http import Http404 from .serializers import MerchantSerializ 阅读全文
posted @ 2020-12-26 16:54 xsan 阅读(21) 评论(0) 推荐(0) 编辑
摘要:模型序列化 from rest_framework import serializers from meituan.models import Merchant, class MerchantSerializer(serializers.ModelSerializer): class Meta: m 阅读全文
posted @ 2020-12-26 16:39 xsan 阅读(49) 评论(0) 推荐(0) 编辑
摘要:DRF基础的序列化 阅读全文
posted @ 2020-12-26 16:04 xsan 阅读(36) 评论(0) 推荐(0) 编辑