On Wed, Feb 11, 2009 at 10:58 AM, jimbocooper <jimbocoo...@gmail.com> wrote:
> > Hello! First of all, I'm Manu, from Zaragoza(Spain) and I'm developing > several apps in Django, this is my first one and also my first post, > now I get stuck and I need some help..... > > I need to call in a server(Apache+mod_python) every ten seconds a > method in which I got data from a web service and copy them into my DB > using Django models...... > I thought to build a python daemon but I'm not sure if that's the > right way to do this, and in an affirmative case, I don't know how to > write it, how to call it from django, or even if it's better to write > it in a separate way and launch it right from the server.... > > Could somebody help me¿? > Thanks in advance!!! > > Cheers for all Django developers ;) > > > > I'd write a custom management command that runs as a daemon, see http://www.oebfare.com/blog/2008/nov/03/writing-custom-management-command/for an idea of how to do ths. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---