微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 硬件工程师文库 > Dragonboard 410c搭载web服务器之数据库的设计

Dragonboard 410c搭载web服务器之数据库的设计

时间:02-09 来源:互联网 点击:
="line" id="LC108"> infoValidityTime = models.CharField(max_length=254)

="line" id="LC109"> isTop = models.IntegerField(default=0)

="line" id="LC110"> viewWeight = models.IntegerField(default=1)

="line" id="LC111"> def __unicode__(self):

="line" id="LC112"> # 在Python3中使用 def __str__(self)

="line" id="LC113"> return self.name

="line" id="LC114">  

="line" id="LC115"> class SystemStatus(models.Model): #实例化对象:online_message MMDB.updateSystemStatus('peopleInfront',-1,0,'no people in front')

="line" id="LC116"> statusName = models.CharField(max_length=30,default="peopleInfront")

="line" id="LC117"> statusValue = models.IntegerField(default=-1)

="line" id="LC118"> statusParam = models.IntegerField(default=0)

="line" id="LC119"> statusDiscirption = models.CharField(max_length=50,default="no people in front")

="line">  

="line"> ="line" id="LC121"> def __unicode__(self):

="line" id="LC122"> # 在Python3中使用 def __str__(self)

="line" id="LC123"> return self.name

三.例程分享:http://pan.baidu.com/share/link?shareid=3536829173&uk=1812979481

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

网站地图

Top