Skip to content

Instantly share code, notes, and snippets.

@mrahul17
Created August 5, 2015 16:32
Show Gist options
  • Select an option

  • Save mrahul17/591a52d273175e2e5f06 to your computer and use it in GitHub Desktop.

Select an option

Save mrahul17/591a52d273175e2e5f06 to your computer and use it in GitHub Desktop.
with open('instiDatacsv.csv','r') as f:
myReader = csv.reader(f)
for row in myReader:
name = row[1]
website = row[5]
domain = row[4]
insti = Institute(name = name, website = website)
insti.save()
InstituteDomain(instituteId = insti, domain = domain).save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment