""" #*********************************************************** gnclub = Club() gnclub.tmid = 410000001 gnclub.fullname = "Guangzhou GumpNew" gnclub.briefname = "GumpNew" gnclub.address = "Area N3, Division N, District 88" gnclub.addressd = "CN-GumpNew" gnclub.meetingno = 14411 gnclub.phone = 1395554458711 gnclub.email = "*****@*****.**" gnclub.website = "http://GumpNew.itoastmasters.com" gnclub.qq = "2536412511" gnclub.weibo = "*****@*****.**" gnclub.imgurl = "/static/img/clubs/club3.png" gnclub.desc = "GumpNew is the most popular toastmasters club in Guangzhou." gnclub.location = location gnclub.section = district gnclub.save() print("club: {} {}".format(gnclub.id, gnclub.fullname)) gnclub_term = Term() gnclub_term.startdate = int(time.mktime(datetime.now().timetuple())*1000) gnclub_term.enddate = gnclub_term.startdate + 16416000000 # half a year: 190*24*3600000 gnclub_term.club = gnclub gnclub_term.save() print("term: {} {}".format(gnclub_term.id, gnclub_term.startdate)) gnclub.curterm = gnclub_term.id gnclub.save()