Re: load-on-startup equivalent in django?

2011-10-21 Thread Martyn Harris
You could use SimpleXMLRPCServer to create a client in your view.py with a function to call the server side, and pass the information over when done. See: http://docs.python.org/library/simplexmlrpcserver.html You'd need to have the server side running the whole time in the background, if you

Re: load-on-startup equivalent in django?

2011-10-20 Thread Jacco Flenter
Another option is to create a command and run it via a cronjob On Thu, Oct 20, 2011 at 2:55 PM, kenneth gonsalves wrote: > > On Thu, 2011-10-20 at 13:38 +0800, Ken wrote: > > I wonder how do I do the same in django framework. Or there is some > > other way to run some

Re: load-on-startup equivalent in django?

2011-10-20 Thread kenneth gonsalves
On Thu, 2011-10-20 at 13:38 +0800, Ken wrote: > I wonder how do I do the same in django framework. Or there is some > other way to run some background code periodicly? look at djcelery -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups

load-on-startup equivalent in django?

2011-10-20 Thread Ken
Hello all I'm new to django and I have a question. I want to find a way to run some code periodicly in the background. Because I have a fax device which will put incoming call data in the database, I scan the database each 3 minutes for new incomings. In tomcat when I can make a