-
-
Save mjpieters/d92ad837a6262cc2699b20d44d295c62 to your computer and use it in GitHub Desktop.
This file contains 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
import csv, io | |
# .... | |
with io.TextIOWrapper(request.FILES["csv_file"].file, encoding='utf8', newline='') as csvfile: | |
reader = csv.DictReader(csvfile, fields=('name', 'start_date_time', 'end_date_time', 'notes')) | |
for data_dict in reader: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment