1 项目路径结构树 2 models创建类 from django.db import models class UserType(models.Model): ''' 用户类型 ''' title = models.CharField(max_length=12) class UserInfo(models.Model): ''' 用户表 ''' name = models.CharField(max_length=16) age = models.IntegerField() ut = mo…