Hi

I have had some problems with that myself. Don't know if this is any
help, but here we go.
i have created a file cron.py that i have placed in the exact same
directory as my settings.py file.
then at the beginning of my cron.py:

from django.core.management import setup_environ
import settings
setup_environ(settings)

if __name__ == '__main__':
        print "test CRON"


Right now it doesn't do anything but print out test CRON :) but it
works.

my crontab:

mailto=?...@gmail.com

DJANGO_SETTINGS_MODULE = <project>.settings

0 12 * * * python  /Users/petermoeller/Documents/Django\ projects/
trunk/fincle/cron.py >> /Users/<username>/Documents/cron.out 2>&1


hope it helps :-)
--~--~---------~--~----~------------~-------~--~----~
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