摘要:
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 阅读全文
摘要:
1.一对多的基本增删改查操作 from django.db import models class UserType(models.Model): type_name = models.CharField(max_length=64, unique=True) class UserInfo(mode 阅读全文
摘要:
1.user/models.py 表数据 from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class User(AbstractUs 阅读全文