Django注册页面配置设计

一、上次回顾

Django数据的增查改删
models 中有userInfo 三个字段 user password phonenumber,
models.userInfo.objects.all().values('user')#只取user列
models.userInfo.objects.all().values_list('id','user')#取ID 和user两列合并生成一个列表
models.userInfo.objects.get(id=1)
增加数据
models.userInfo.objects.create(user='',password='')
或者obj=models.userInfo(user='',password='')
obj.save()

二、Django注册页面

Django 用户注册系统 在这个APP中包含 djnago.contrib.auth,
在这里我们创建一个项目 studio_zhuce
django -admin startproject studio_zhuce

djangp中已经将注册页面设计好了,你需要添加*即可https://github.com/django/django/tree/1.9/django/contrib/admin/templates/registration

上一篇:Android之旅-Intent与Intent Filter[上]


下一篇:Angular Mobile UI API文档