Commit d8867a45 authored by Mario Chirinos's avatar Mario Chirinos

bulk upload

parent 6836d141
...@@ -123,7 +123,7 @@ class Command(BaseCommand): ...@@ -123,7 +123,7 @@ class Command(BaseCommand):
objectsList.append(news) objectsList.append(news)
News.objects.bulk_create(objectsList) News.objects.bulk_create(objectsList)
print(fileDate, " SAVED")
except ValueError as e: except ValueError as e:
print (e) print (e)
print ("Error: " + os.getcwd()+"/"+f) print ("Error: " + os.getcwd()+"/"+f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment