微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > 基于Dragonboard 410c服务器系列之二局域网用户管理系统

基于Dragonboard 410c服务器系列之二局域网用户管理系统

时间:02-15 来源:互联网 点击:

(r'^regist/$',views.regist,name = 'regist'),

url(r'^registfaild/$',views.regist,name = 'regist'),

url(r'^registfaild1/$',views.regist,name = 'regist'),

url(r'^registsuccee/$',views.registsuccee,name = 'registsuccee'),

url(r'^text/$',views.text,name = 'text'),

url(r'^video/$',views.video,name = 'video'),

url(r'^index/$',views.index,name = 'index'),

url(r'^logout/$',views.logout,name = 'logout'),

url(r'^static/(?P<path>.*)$', 'django.views.static.serve',{ 'document_root': register.settings.STATIC_URL }),

)

2.3.online/modes

#coding:utf8

from django.db import models

from django.contrib.auth.models import AbstractUser

from django.conf import settings

# Create your models here.后台数据保存

# Create your models here.

class User(models.Model):

# nickname = models.CharField(max_length=64, blank=False)

# author = models.ForeignKey(settings.AUTH_USER_MODEL)

text = models.CharField(max_length=50)

email= models.EmailField()

# desc = models.TextField()

# qq = models.CharField(u'qq号', max_length=16)

username = models.CharField(max_length=50)

password = models.CharField(max_length=50)

 

def __unicode__(self):

return self.username

 

#class UserAdmin(admin.ModelAdmin):

# list_display = ('username','password')

# Create your models here.

 

 

 

#class MyUser(AbstractUser):

# qq = models.CharField(u'qq号', max_length=16)

# weChat =models.CharField(u'微信账号', max_length=100)

# mobile =models.CharField(u'手机号', primary_key=True, max_length=11)

# identicard =models.BooleanField(u'身份证认证', default=False) #默认是0,未认证, 1:身份证认证, 2:视频认证

# refuserid = models.CharField(u'推荐人ID', max_length=20)

# Level = models.CharField(u'用户等级', default='0', max_length=2) #默认是0,用户等级0-9

# vevideo = models.BooleanField(u'视频认证', default=False) #默认是0,未认证。 1:已认证

# Type =models.CharField(u'用户类型', default='0', max_length=1) #默认是0,未认证, 1:刷手 2:商家

#

# def __str__(self):

# return self.username

三、实测效果

图2 登录页面

图3 注册页面

四、例程分享:http://pan.baidu.com/s/1dFOKoI9

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top