Skip to content

Instantly share code, notes, and snippets.

@abairo
Created July 13, 2018 02:24
Show Gist options
  • Save abairo/8abedfaba5994e89545788dd01ffc7ae to your computer and use it in GitHub Desktop.
Save abairo/8abedfaba5994e89545788dd01ffc7ae to your computer and use it in GitHub Desktop.
csvfile = request.FILES.get('csv_file', None)
csv_bytes = csvfile.file.read()
csv_rows = rows.import_from_csv(BytesIO(str.encode(csv_bytes.decode('iso-8859-1'))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment