摘要: 一、登录功能 views.py 0难度,都是基本操作,要熟悉auth模块的使用 # 登录功能 def login(request): # 1 获取前端传来的数据 if request.method=='POST': back_dic = {'code':0,'msg':''} username = 阅读全文
posted @ 2020-06-11 20:33 lxttt521 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 一、表创建及同步 from django.db import models from django.contrib.auth.models import AbstractUser # 用户信息表 class UserInfo(AbstractUser): # 新增phone,avatar,creat 阅读全文
posted @ 2020-06-11 08:18 lxttt521 阅读(159) 评论(0) 推荐(0) 编辑