用python导出一列到django数据库

我有一个excel文件,其中F列中有用户的电子邮件。我想获得每一行中的电子邮件,并导入到Django数据库。 然而; 因为我对Django很新,所以我不懂如何去做。 这是我试过的:

import openpyxl from ms.common.models import User, Participant, Question, Answer wb = openpyxl.load_workbook('list.xlsx') ws = wb.get_sheet_names() for row in ws.iter_rows('F{}:F{}'.format(ws.min_row,ws.max_row)): for cell in row: print cell.value #create email participant, created = Participant.objects.get_or_create(mail=user.username)