RE: using Django from cron

2011-03-16 Thread Sells, Fred
Thanks to all who responded and especially Shawn who said much the same thing in a way I could grasp. ... import os os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' >From the docs: http://docs.djangoproject.com/en/dev/topics/settings/ Shawn -- You received this message because you

Re: using Django from cron

2011-03-10 Thread Bill Freeman
On Thu, Mar 10, 2011 at 12:49 PM, Tom Evans wrote: > On Thu, Mar 10, 2011 at 5:42 PM, Sells, Fred > wrote: >> I'm sure the solution is out there somewhere, but my google search is >> giving me too many false positives. >> >> I have a stand along python program that will be run as a cron job and I

Re: using Django from cron

2011-03-10 Thread Tom Evans
On Thu, Mar 10, 2011 at 5:42 PM, Sells, Fred wrote: > I'm sure the solution is out there somewhere, but my google search is > giving me too many false positives. > > I have a stand along python program that will be run as a cron job and I > don't know how to launch it so it picks up the django set

Re: using Django from cron

2011-03-10 Thread Shawn Milochik
import os os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' >From the docs: http://docs.djangoproject.com/en/dev/topics/settings/ Shawn -- 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@

using Django from cron

2011-03-10 Thread Sells, Fred
I'm sure the solution is out there somewhere, but my google search is giving me too many false positives. I have a stand along python program that will be run as a cron job and I don't know how to launch it so it picks up the django settings, etc. I can run it like this >python manage.py shell >