Command line script > Ensure that its module, "models", is located inside an installed app. error

2015-06-07 Thread Oscar Buijten
Hi There, For various reasons I recently started efforts to covert an existing .php application to pyhton + django. There are quite a few scripts that are executed through cron and so from the command line while coding. I did find some info on how to setup the start of the script, but keep run

Re: Command line script > Ensure that its module, "models", is located inside an installed app. error

2015-06-07 Thread Oscar Buijten
the end user. I now just am converting to python/django Thanks again, Oscar Le dimanche 7 juin 2015 14:26:39 UTC+2, Oscar Buijten a écrit : > > Hi There, > > For various reasons I recently started efforts to covert an existing .php > application to pyhton + django. > Ther

Re: Command line script > Ensure that its module, "models", is located inside an installed app. error

2015-06-07 Thread Oscar Buijten
Thanks for your swift responses Gergely. It's much appreciated ;-) I will try again for the django-admin command Oscar Le dimanche 7 juin 2015 14:26:39 UTC+2, Oscar Buijten a écrit : > > Hi There, > > For various reasons I recently started efforts to covert an existing .php

Re: Command line script > Ensure that its module, "models", is located inside an installed app. error

2015-06-08 Thread Oscar Buijten
hange: print(tickerlist.ticker) -- snip -- Le dimanche 7 juin 2015 14:26:39 UTC+2, Oscar Buijten a écrit : > > Hi There, > > For various reasons I recently started efforts to covert an existing .php > application to pyhton + django. > There a

push yahoo finance json data into database

2015-06-08 Thread Oscar Buijten
Hi there, The python learning curve seems to be steeper than expected :-( As yesterday, help converting my php app into python/django will be appreciated. I have the following: snip --- from django.core.management.base import BaseCommand, CommandError impor

Re: push yahoo finance json data into database

2015-06-09 Thread Oscar Buijten
lp me with some other data as well (it's part of the learning curve I guess :-) ). Thanks! Oscar As an example; the key Symbol needs to put it's value into field 'yahoo_symbol' in the model/table Le lundi 8 juin 2015 22:09:05 UTC+2, Oscar Buijten a écrit : > > Hi the

Re: push yahoo finance json data into database

2015-06-09 Thread Oscar Buijten
ated I guess I could change the field names in the model/table, but I rather not as the trick in itself would help me with some other data as well (it's part of the learning curve I guess :-) ). Thanks! Oscar Le lundi 8 juin 2015 22:09:05 UTC+2, Oscar Buijten a écrit : > > Hi the

Re: push yahoo finance json data into database

2015-06-09 Thread Oscar Buijten
d(max_digits=10, decimal_places=4, blank=True, null=True) volume = models.IntegerField(blank=True, null=True) average_volume = models.IntegerField(blank=True, null=True) Le lundi 8 juin 2015 22:09:05 UTC+2, Oscar Buijten a écrit : > > Hi there, > The python learning curve seems to