Skip to content

Content Tagged "model"

Page 1 of 1

Content Tagged "model"

Send JSON Graph Data from Django

February 3, 2019Categories: Software, Tutorial
I'm trying to write a Django application to deal with my finances. I've got a nice page listing various transactions, but I thought it'd be nice to have a graph too, to see where I actually am on the spot. To do this, I'll need two components: A JSON sender from Django A receiver and renderer on the…

Save Pandas DataFrame as Django Model

August 7, 2017Categories: Software, Tutorial
TL;DR: use bulk_upload coupled with a comprehension to speed up loading. Initially, I started to convert the data frame to a Model object row by row and save it. While easy, it's also arguably the slowest method to load records, because the save() call performs a commit . Then I looked up…

All tags