0

Django help!!!!

can anybody tell me how to read CSV files using Django..

13th Jan 2020, 12:21 AM
Naveen
Naveen - avatar
1 Answer
+ 1
import csv def csv_reader(file_obj):     reader = csv.reader(file_obj)     for row in reader:         print(" ".join(row))   if __name__ == "__main__":     csv_path = "????.csv"     with open(csv_path, "r") as f_obj:         csv_reader(f_obj)
14th Jan 2020, 2:21 PM
Roman Ignatev
Roman Ignatev - avatar