On Sep 6, 9:16 pm, cootetom <coote...@gmail.com> wrote: > Hi, > > I'm looking to try and run some python code that has complete access > to the django framework and some existing app models that I have in a > project as a windows service. I have an app that allows a user to set > up an email that should send sometime in the future. I want a windows > service to be checking the mySQL database periodically for emails to > send. > > So I've looked around the net to see what I can find and I think there > is enough there for me to hack something together that works. My > python experience is purely through django alone. However I wanted to > see if anyone knows of some code somewhere that will help me do just > this task. This particular django site runs on windows, apache + > mod_python and mySQL db. > > - Tom
The easiest way to do this sort of thing is to write a custom manage.py command - see the (unfortunately very sparse) documentation here: http://docs.djangoproject.com/en/dev/howto/custom-management-commands/ You can then set the Windows scheduler to run 'python manage.py yourcommand'. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---