在上一篇博客中,为大家介绍了Django的一些基本概念以及建立了第一个App——Users,并且在数据库中建立了对应的表. 在这篇博客中,将为大家继续介绍数据库模型的定义和相关操作,以及Users App功能的后端实现——注册,登录以及查看用户资料. 上篇博客中,我们通过Users model建立了users_users表: from django.db import models import datetime import PIL # Create your models here. cla