-1

I am working on a project which periodically downloads stock details as a json file from a web server and save locally for user requestes .Since it is not appropriate to download the same for each user request i need help in doing that

I know how to do it using cron but i prefer it in django itself ..

4

1 に答える 1

1

while Trueループとthread.sleep(intervaltime)関数を使用して django コマンドを作成します。

そして、djangoサーバーを起動した後、これを実行しますpython manage.py commandname

于 2013-08-18T14:41:59.030 に答える