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.

On Jan 26, 8:09 pm, Daniel Roseman <roseman.dan...@googlemail.com>
wrote:
> On Jan 26, 1:55 pm, Rama <ramaakrish...@gmail.com> wrote:
>
>
>
> > i have a standalone python script which uses a django module. i need to
> > schedule  that script using crontab.
> > while doing this i encountered the following problem
>
> > 1) the above standalone python script  which uses django module is running
> > properly on the terminal.
> >       ( DJANGO_MODULE_SETTINGS  are properly configured)
>
> > 2) i tried to schedule it by making an entry into the /etc/crontab
> >      */1 * * * *  rama python
> > /home/rama/djangoprojects/doloto/cronjobs/fetchffeed.py
> >     but it is not running in the respective intervals.
>
> > 3) i tried scheduling the normal script (which just creates the file). it
> > is  running properly in the respective intervals.
>
> >  *  i can able to schedule normal python script but i can't able to schedule
> > a standalone python script which uses django functions.*
>
> >     Can any one please guide me on how to schedule the standalone python
> > script which uses the django functions.
>
> > --rama
>
> Remember that cron runs in its own (very cut-down) environment. So
> when you say "DJANGO_MODULE_SETTINGS  are properly configured", where
> are they configured? The best thing to do is to set it specifically at
> the start of the script - or, if you're using a custom manage.py
> command, pass it as the --settings argument.
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to