Create a scheduled task /cron job that does what you want. This will get you started:
from django.core.management import setup_environ import settings # If your script file is in the same directory as the settings.py file setup_environ(settings) After that, import your models as usual and use the django ORM as usual. Regards, Stefan Alfonso escribió: > Hi, > > I have a client who wants to generate an invoice statment > automatically on the first of every month. I'm trying to work out how > I might do that in Django. I have a simple statement model and a > simple invoice model and all I want to do is on 1st of calendar Month > update the statement model with invoices that haven't been paid. > > I'm not sure how to make that 'fire' correctly without an admin doing > the legwork of adding a statement? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---