Re: Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread Stefan Tunsch
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

Re: Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread martín arrieta
Hello.. it is very easy to make one standalone script with django.. Check this post: http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/ Martin. 2009/2/18 GRoby > > Alfonso, > > One way would be to create a View that performs all of the Report > Generating Tasks. You could th

Re: Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread GRoby
Alfonso, One way would be to create a View that performs all of the Report Generating Tasks. You could then use cron (or another task scheduler) to run a command line browser that runs that view (using wget for example). So basically you would have a @monthly entry in cron that runs something l

Re: Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread Alex Gaynor
On Wed, Feb 18, 2009 at 10:36 AM, Alfonso wrote: > > 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

Getting Django to generate a report automatically on a assigned date?

2009-02-18 Thread Alfonso
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 w