models.py文件
1 class UserInfo(AbstractUser): 2 phone = models.CharField(max_length=11) 3 addr = models.CharField(max_length=128) 4 avatar = models.FileField(upload_to="avatars/", default="avatars/default.png", verbose_name="头像")
在terminal中输入:
python manage.py makemigrations
再输入:
python manage.py migrate
标签:py,models,manage,avatars,Django,数据表,python,现有 From: https://www.cnblogs.com/zs0621/p/16729033.html