摘要: 1.1 Meta源信息 from django.db import models # Create your models here. class Cls(models.Model): title=models.CharField(max_length=100) class UserInfo(mod 阅读全文
posted @ 2020-10-29 07:44 小虾米爱吃鱼 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.一对多的基本增删改查操作 from django.db import models class UserType(models.Model): type_name = models.CharField(max_length=64, unique=True) class UserInfo(mode 阅读全文
posted @ 2020-10-29 07:35 小虾米爱吃鱼 阅读(183) 评论(0) 推荐(0) 编辑