Thanks Malcolm. It is the case.
Instead of relying on the DJANGO_SETTINGS_MODULE which was there in the /etc/profile i have used the below code (taken from http://superjared.com/entry/django-and-crontab-best-friends/ & also mentioned by peteDK) ----- from django.core.management import setup_environ import settings setup_environ(settings) ------ now it is working well. THanks On Jan 27, 9:23 am, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Mon, 2009-01-26 at 19:46 -0800, Rama Vadakattu wrote: > > i configured the DJANGO_SETTINGS_MODULE in /etc/profile.this means > > that it is a system wide environmental variable and can be used every > > where. > > Cron jobs are run in a very limited environment by default, for security > reasons. That includes not executing /etc/profile, since cron is not run > as a login shell (/etc/profile is only executed by shell processes > running as a "login shell", such as via "bash -l"). > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---