I am using stock data from xignite.
I seriously beleive I messed up dates because (unable to say well) its definitely dealing with multiple timezones(due to multiple countries).
How to make timezones well?
For example if someone sees data for 25th May, 2015, it shouldnt be shown as 24th or 26th due to neglecting of timezones.(I am currently not managing timezones).
I get data by csv format, I then use python to extra/modify data and save to db using python(not Django). I dont touch date(other than saving it).
And then I use Django and will use that data from that StockData model.
Adding code in a couple of mins to show data.
StockData model:
#Saved initially using python(not Django)
# but later I might get StockData objects and save them to populate
#some other fields of that table during save (django, not simple python).
date = models.DateTimeField()
country = models.ForeignKey
company = models.ForeignKey
open, close, high ... values
Whenever I want to display I will simply do
StockData.objects.filter(...) #No timezone work as of now
I added some random timezone in settings.py
TIME_ZONE = 'America/New_York' #Dont ask my why NewYork
#because its just random for now. StockData belongs to some other continent which I cant reveal(let me know if I have to). For now, please assume contient as ABC continent. But that python script is run in US.