Created
July 13, 2018 02:24
-
-
Save abairo/8abedfaba5994e89545788dd01ffc7ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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